this script unsets all the bans in a channel have fun! and btw this is one of my new scripts :) thx for using it :D
btw you have to type: /unbanall
to unban the all bans in the channel :)
unbanall {
if ($me !isop #) { echo -a * You are not oped in # | halt }
if ($ibl(#,0) == 0) { echo 12 -a * No bans to unset | halt }
var %u = $ibl(#,0)
while (%u > 0) {
dec %u
inc %t
var %ban = %ban $ibl(#,%u)
if (%t == $modespl) {
mode # - $+ $str(b,$modespl) %ban
unset %t %ban
}
}
mode # - $+ $str(b,$modespl) %ban
}
change this :
unbanall {
if ($me !isop #) { echo -a You are not oped in # | halt }
if ($ibl(#,0) == 0) { echo 12 -a No bans to unset | halt }
var %u = $ibl(#,0)
while (%u > 0) {
dec %u
inc %t
var %ban = %ban $ibl(#,%u)
if (%t == $modespl) {
mode # - $+ $str(b,$modespl) %ban
unset %t %ban
}
}
mode # - $+ $str(b,$modespl) %ban
to this :
unbanall {
if ($me !isop #) { echo -a You are not oped in # | halt }
if ($ibl(#,0) == 0) { echo 12 -a No bans to unset | halt }
var %u = $ibl(#,0)
while (%u > 0) {
;dec %u
inc %t
var %ban = %ban $ibl(#,%u)
if (%t == $modespl) {
mode # - $+ $str(b,$modespl) %ban
unset %t %ban
dec %u
}
}
mode # - $+ $str(b,$modespl) %ban
}
all that as changed/moved is the line : dec %u