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 @ !)
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
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..
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.