$remtok prob - 04/07/09 04:06 PM
Hello,
I create this alias but when i used only one nick removes from the %AJM_nicks list why? i saw that did not make a loop :S any help?
I create this alias but when i used only one nick removes from the %AJM_nicks list why? i saw that did not make a loop :S any help?
Code:
alias ajm_check { if (!%AJM_nicks) { halt } ; %AJM_nicks westor,westor1,westor2,westor3,westor4,westor5,westor6,westor7,westor8 var %i = 1 while (%i <= $numtok(%AJM_nicks,44)) { var %ch = $gettok(%AJM_nicks,%i,44) if ((!%AJM_ [ $+ [ %ch ] $+ ] _message) && ($istok(%AJM_nicks,%ch,44))) { set %AJM_nicks $remtok(%AJM_nicks,%ch,44) | echo -s Successfully removed %ch nick } inc %i } inc %i }