Unban All
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 1.0 |
| Scores Submitted | 1 |
| Date Added | Sep 14, 2007 |
| Last Updated | Sep 14, 2007 |
| Tags | ban script unban |
|
|
Introduction
btw you have to type: /unbanall
to unban the all bans in the channel :)
mIRC Snippet:
Unban All
Posted on Jun 13, 2008 7:41 pm
Posted on Jun 13, 2008 7:41 pm
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
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








