on *:KICK:#:{ if ($nick == chanserv) { cs akick $chan DEL $me } if ($knick == $me) { cs invite $chan set %kicked $addtok(%kicked,$Nick,32) } } on *:JOIN:#:{ if ($nick == $me) { %x = 0 while ($numtok(%kicked,32) >= %x) { ban $chan -k $gettok(%kicked,%x,32) set %kicked $remtok(%kicked,%x,32) inc %x } }