Unban all bans

By Corne on Jan 20, 2006

It removes all bans from a channel without looping. Type in a channel: /unbanall [#channel]

alias unbanall $iif($me isop $iif($1,$1,$active),!.mode $iif($1 ischan,$v1,$active) +b-b *!*@* *!*@*,echo 2 -at Error... you must be @ !)

Comments

Sign in to comment.
xplo   -  Nov 16, 2008

/ban -r *

 Respond  
Gex   -  Jan 22, 2006

aha....corne i think thats in undernet only am in IrcQ-Net it doesnt work there...anyway banning the global mask !@ and unbanning it in the same mode with -b !@ does nothing in ircqnet....yet ur script is good....even though its 2 lines only but well scripted....Goodluck

 Respond  
Corne   -  Jan 22, 2006

Gex, Maybe you are using a different version of ircu... I dont know, works fine to me (UnderNet, Diemen.Nl.Eu.Undernet.Org). When you ban !@, it will remove all the other bans and ban !@. When you ban !@* and remove it in the same mode/line, it should remove all the bans from the banlist.

Thaks xDaeMoN and nice to see you too :D

 Respond  
Gex   -  Jan 22, 2006

Corne i donno how is that supposed to be work? there are alot of $iif to check if the user gave the channel argument else it takes the active channel into consideration...for the mode section i donno what u mean by
+b-b !@ !@ ... its obvious that that it will ban and unban the mask !@* immediatly....ummm i donno maybe its workin on other servers..

 Respond  
Gex   -  Jan 22, 2006

Corne Thats What i get too

 Respond  
xDaeMoN   -  Jan 22, 2006

Nice snippet Corne & nice to see you again.

 Respond  
Corne   -  Jan 21, 2006

How can you get that +b-b !@ !@ ? are you sure about that ?

 Respond  
XpLoiTeR   -  Jan 21, 2006

[09:50:24] basic sets mode: +b-b !@ !@* << is that supposed to be mass unban??

 Respond  
Corne   -  Jan 20, 2006

I see what you are saying and you are right. Updated~

 Respond  
Yoinx   -  Jan 20, 2006

the only problem I can see right off hand, is in one $iif you allow a parameter to be passed to the alias, but in the first one, you\'re checking if you\'re an op in active. Meaning, I have 2 channels open. #chan1 is active and im an op. #chan 2 is not active and im not an op. if in #chan1 I type /unbanall #chan2 - It will pass your error checking, but give me an \'Error you are not a channel operator\'. Not a big deal, just figured I\'d point it out.

 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.