mIRC Home    About    Download    Register    News    Help

Print Thread
Kick all users that got banned #168255 06/01/07 01:22 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
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..


learn learn learn
Re: Kick all users that got banned [Re: learn3r] #168258 06/01/07 01:30 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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


Re: Kick all users that got banned [Re: learn3r] #168264 06/01/07 02:38 AM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
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
  }
}



If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: Kick all users that got banned [Re: xDaeMoN] #168265 06/01/07 02:51 AM
Joined: Oct 2003
Posts: 313
S
Sais Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
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)


Sais
Re: Kick all users that got banned [Re: Sais] #168266 06/01/07 02:55 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
It's very useful too for kicking clone inviters on a channel
especially relay inviters...

Thanks Daemon


learn learn learn