Jesper, your code won't work, as you don't have the right format for $readini. Here is a bad channel scanner:
Code:
 
on *:JOIN:#: { 
  if ($me isop #) { 
    var %a = 1
    while ($nick ison $readini(badchans.ini,chans,%a)) { 
      mode # +b $address($nick,2)
      kick # $nick $readini(badchans.ini,chans,kickmsg)
      if (!$readini(badchans.ini,chans,%a)) { return } 
      inc %a
    }
  }
}

Alternate the .ini and kickmsg accordingly. The blacklisted chans sould be added in numbers:
e.g.: (This is correct)
5=#blah
6=#blahblah
7=#blahblahblah
(This is wrong)
5=#blah
125=#blahblah
694345674632456=#blahblahblah

Hope i helped you out. Nice idea btw, although it might seem kind of including racism. smirk

Last edited by gerdigos; 23/04/03 09:05 PM.