on !*:part:#:{ if ($nick($chan,0) <= 10) { part $chan } } on *:kick:#:{ if ($nick($chan,0) <= 10) && ($knick != $me) { part $chan } } on !*:quit:{ var %i = 1 while ($chan(%i)) { if ($nick($v1,0) <= 10) { part $chan(%i) } inc %i } }