clear bans

By weaver on Mar 09, 2007

a small snippet to clear all bans on a channel
type /clearbans in any channel window.

URL: http://www.mircscripts.org/comments.php?cid=3923

;weaver shy spyder irc.hackthissite.org #help
:for source (matt clayton) ɛ ɛ hackthissite.org
alias clearbans {
  if ($me isop $chan) {
    echo $active Clearing bans on $chan
    var %i = 1, %bans
    while (%i <= $ibl($chan,0)) {
      %bans = %bans $ibl($chan,%i)
      if ($numtok(%bans,32) == $modespl) {
        mode $chan - $+ $str(b,$numtok(%bans,32)) %bans
        %bans = ""
      }
      inc %i
    }
    if (%bans) mode $chan - $+ $str(b,$numtok(%bans,32)) %bans
  }
}

Comments

Sign in to comment.
Phil_FW   -  Mar 07, 2011

Finally someone who uses HTS lol

 Respond  
Reborg   -  Mar 06, 2011

Cool script.

 Respond  
guest598594   -  Jan 25, 2008

oh

 Respond  
Lindrian   -  Jan 25, 2008

if a channel is active, $chan will be filled

 Respond  
guest598594   -  Jan 25, 2008

isn\'t $chan $null? it should be /clearbans [chan] and if ($me isop $1) unless ur cheackin if $active ischan

 Respond  
AHBARAR   -  Jun 03, 2007

Hey Its Nice 1 i like it and if u want u can load it on ur bot and change little things as example.
on 500:text:!clearbans :: {
/clearbans $2
}
alias clearbans {
if ($me isop $1) {
echo $active Clearing bans on $1
var %i = 1, %bans
while (%i <= $ibl($1,0)) {
%bans = %bans $ibl($1,%i)
if ($numtok(%bans,32) == $modespl) {
mode $1 - $+ $str(b,$numtok(%bans,32)) %bans
%bans = \"\"
}
inc %i
}
if (%bans) mode $1 - $+ $str(b,$numtok(%bans,32)) %bans
}
}
U can change the level thing but its my level on my bot and u can order ur bot from unplace to unban any room he is in even if u order him from pvt >:P

 Respond  
|MELIORITE|   -  Mar 21, 2007

Yeah... I know its not a protection script... that wasn\'t my point.

 Respond  
Solo   -  Mar 18, 2007

Its not meant to be a protection. i use it when my channels ban list is getting old and full and want to clear it. The spped of this script is amazing. I also like the fact that it sends the exact amount of -bb and nothing superflous. Having gone on the irc to speak with the author about another script he has made i got the news that he is not with us anymore. so RIP weaver

 Respond  
|MELIORITE|   -  Mar 18, 2007

It\'s pretty handy if you wish to undertake a mass unban, and aren\'t too fastidious about who to unban. I guess being careful if somebody has a mass unban protection on a channel otherwise the next address to unban might be your own :P. I do like the script though...

 Respond  
weaver   -  Mar 10, 2007

Snippet now a few milisecs 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.