This script kicks a person that you specify whenever they talk in a certain channel.
To change the person that you want to kick, just type /ck USER
To change the reason you kick the person for, just type /cr REASON
Be sure to change #chan in "on :TEXT::#chan:" to whatever channel you want.
Enjoy!
on *:TEXT:*:#chan: {
var %length = $len(%user) + 2
var %persontalking = $mid($left($address(%user,0), %length),3,$len(%user))
var %tester = $left($address,$len(%user))
if ( %persontalking isin %tester ) { kick $chan $nick %reason }
}
alias ck %user = $$1
alias cr %reason = $$1
This was more for a friend of mine/for fun, as The_Almighty_Duelist said. He asked for it a certain way, so I gave it to him =P
Jethro:
The alias is used to set the local variable, so yes, it will work with that.
I realized the thing about the $$1's a few minutes after posting, so that's fixed now, thanks!
Thanks for the comments ya'll, it's greatly appreciated :)
I don't get all the $len() $left() ? What is that for? Why not just make a variable
%auto.kick.user.addy = $address($$1,3)
and then
if ($address($nick,3) == %auto.kick.user.addy) { kick $chan $nick %reason }
For me, I would just use akick or +b ~q: . This method seems like cruel and unusual punishment ;/