mIRC Homepage
Posted By: learn3r Kick all users that got banned - 06/01/07 01:22 AM
How to do a kick on ban?
The fastesr way simpliest code...

And..
for example there is a clone flood attack that will try to
flood the channel

there are 8 clones
i banned their ip's
the script will scan the chan and will kick the clones one
by one..
Posted By: RusselB Re: Kick all users that got banned - 06/01/07 01:30 AM
You can specify an address (including wildcarded addresses) in the /ban command. Rather than using /mode #channel +b IP and then scanning the channel kicking them, try /ban -k #channel IP

Posted By: xDaeMoN Re: Kick all users that got banned - 06/01/07 02:38 AM
Just in case you're using /mode OR another op set the ban, the code below would auto kick users that matched the banmask. This would be using the IAL.

Code:
on @*:BAN:#: {
  var %i = 1
  while ($ialchan($banmask,#,%i).nick) {
    if ( $v1 != $me ) kick # $v1 Banned!
    inc %i
  }
}

Posted By: Sais Re: Kick all users that got banned - 06/01/07 02:51 AM
But of course, then noone will be able to just silence users with a ban. That can be useful at times. (A banned user who is still on the channel cannot send messages to the channel, in case you weren't aware)
Posted By: learn3r Re: Kick all users that got banned - 06/01/07 02:55 AM
It's very useful too for kicking clone inviters on a channel
especially relay inviters...

Thanks Daemon
© mIRC Discussion Forums