Unban All

By M[n]M on Sep 14, 2007

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
}

Comments

Sign in to comment.
JamoBox   -  Dec 21, 2012

I intended to use this for a bot, so the highlighting was not an option. I have found another script that caters more for my needs though. Thanks anyway

 Respond  
Stewie1k94   -  Dec 19, 2012

If you're using mIRC you can just double click channel, highlight them all, and click remove. >.> Good snippet though.

 Respond  
JamoBox   -  Dec 19, 2012

I know this is old, but I really need a script like this. Is there a way to make it not leave a ban and unban everything?

 Respond  
Viper01   -  Jun 17, 2008

punktured: even though that is the easier route, you\'d need higher than normal op status to use it ._.

 Respond  
PuNkTuReD   -  Jun 13, 2008

alias unbanall {
ChanServ CLEAR $chan BANS
}

 Respond  
SmokeyMU   -  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  
juhapuha   -  Feb 24, 2008

2) It keeps leaving one ban in the ban list even if there are les than 12. Ex: 8 bans total. It will unban 7. <- Scakk are you sure your ibl was up to date (mode #channel +b)?

 Respond  
juhapuha   -  Feb 24, 2008

Can\'t you just use \"/mode #channel +b-b \" :)

 Respond  
M[n]M   -  Feb 17, 2008

but you can change the number! =)

 Respond  
Scakk   -  Nov 01, 2007

1) It does not unbanall.
2) It keeps leaving one ban in the ban list even if there are les than 12. Ex: 8 bans total. It will unban 7.
3) It stops at 11 unbans even if there are more.

 Respond  
cantseeme   -  Sep 15, 2007

could be much faster.

 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.