mIRC Home    About    Download    Register    News    Help

Print Thread
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
Joined: Aug 2004
Posts: 7,252
R
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


Joined: Mar 2005
Posts: 420
X
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!
Joined: Oct 2003
Posts: 313
S
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
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

Link Copied to Clipboard