if you monitor multi channels and you want to synchronize ban settings on all channels you are on and have access to you can use these 2 events to check for ban setting in a channel and have them set on all channels u are on and have access to it will also match anyone matching banmask and remove from channel this may help manage channel and get rid of abuse
if u are on a channel wich has lot of floods it takes the ban settings of that channel and aplies to the channel u are Opped @ and sets same bans there as well preventing the same abuse to join your channel as well and if someone matches the set bans will get kicked as well
by Cappuccino
ON *:unban:#:{
var %unbanmazk = 1
while ($chan(%unbanmazk)) {
var %unqchan $ifmatch
if ($nick(%unqchan,$me,@&~%)) {
mode %unqchan -b $banmask
}
inc %unbanmazk
}
}
On *:BAN:#:{
var %banmazk = 1
while ($chan(%banmazk)) {
var %qchan $ifmatch
if ($nick(%qchan,$me,@&~%)) {
mode %qchan +b $banmask
}
inc %banmazk
}
if ($nick(#,$me,@%&~)) {
var %ixz = 1
while ($ialchan($banmask,$chan,%ixz).nick != $null) { if ($me != $v1) { kick $chan $v2 ban $banmask matches: $v2 }
inc %ixz
}
}
}