alias delbans will remove all YOUR bans in the channel, clearbans will remove all bans in channel. Simple but effective.It's been done before, but...
alias delbans {
set %chan- #
set %ooo 0
:start
inc %ooo
if ($ibl(%chan-,%ooo) == $null) { goto end }
if ($gettok($ibl(%chan-,%ooo).by,1,33) == $me) {
mode %chan- -b $ibl(%chan-,%ooo)
goto start
}
goto start
:end
}
alias clearbans {
set %chan- #
set %ooo 0
:start
inc %ooo
if ($ibl(%chan-,%ooo) == $null) { goto end }
mode %chan- -b $ibl(%chan-,%ooo)
goto start
:end
}