if the ibl isn't filled the script update the list immediatly by this command /mode #chan +b
raw 368 VodkaplayeR #aide.script :End of Channel Ban List
this trigger when finished to update the ban list
we check for the variable matching
then unset it and calling back the alias /unbanall $2
- Code: Select all
alias unbanall {
!var %c = $iif($1,$1,$active),%i = 1
if (!%c) { !echo -as insufficient parameter | !return }
if (%c !ischan) { !echo -as Invalid window (not on channel). | !return }
if ($me !isop %c) { !echo %c I'm not an op on %c | !return }
if (!$chan(%c).ibl) { !set %update.ibl %c | !.mode %c +b | !return }
if (!$ibl(%c,0)) { !echo %c the banlist is empty on %c $+ . | !return }
while ($ibl(%c,%i)) {
!var %b = $addtok(%b,$v1,32) | !inc %i
if ($numtok(%b,32) == $modespl) { !mode %c $+(-,$str(b,$v2)) %b | !var %b }
}
if ($numtok(%b,32)) { !mode %c $+(-,$str(b,$v1)) %b }
!echo %c $ibl(%c,0) $iif($ibl(%c,0) > 1,bans have,ban has) been removed.
}
raw 368:& & & of Channel Ban List: { if ($2 == %update.ibl) { !unset %update.ibl | unbanall $2 | !haltdef } }
to get help join #aide.script at Quakenet.
de rien
