SmokeyMU

SmokeyMU

Joined
Jun 13, 2008

Activity Stream

SmokeyMU commented on a Page, Unban All  -  Jun 13, 2008

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

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.