just write /unbanall to clear bans on the chan or /unbanall only to clear the bans on the active chan.
alias unbanall {
set %chan $iif($1,$1,$active)
.timer 0 2 unbanallx
}
alias unbanallx {
mode %chan +b
if ($ibl(%chan,0)) {
if (%chan ischan) {
if ($me isop %chan) || ($me ishop %chan) {
;mode %chan +b
var %x $ibl(%chan,0)
var %y 0
while (%y <= %x) {
var %banlist = $(%banlist,$ibl(%chan,%y))
inc %y
}
mode %chan $+(-,$str(b,$ibl(%chan,0))) %banlist
}
else { echo -a ur not op in %chan }
}
else { echo -a ur not on %chan }
}
}
Not bad but it only cleared the first four bans on a channel. If there were more than four I had to type the command again. If there were more than eight I had to type it three times...etc. Maybe it is because I am on chatspace though, and all it allows is four commands to be carried out at once, unless you can find a way around it. Otherwise worked just like it should.