Phoenix- commented on a Page, Mass Commands  -  Sep 20, 2009

Honestly, when I look at it, thats a poor way to do it still.

alias massinvite { if ($1 && $2) { var %x $nick($1,0) | while (%x) { invite $nick($1,%x) $2 | dec %x } } | else { echo -a $+($chr(3),12,* /massinvite: insufficient parameters) } }

Thats better.

But then... Why use a while loop?

alias massinvite { if ($1 && $2) { var %1 $1,%2 $2 | tokenize 32 $regsubex($str(~,$nick(%1,0)),/./g,$+($nick(%1,\n),$chr(32))) | invite $* %2 } | else { echo -a $+($chr(3),12,* /massinvite: insufficient parameters) } }
 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.