Got bored, made this. There's only so many ways it can be done, so if you think I ripped it, keep your comment to yourself. If you don't know how to use it, then you need to read mIRC's /help file before asking me anything.
Usage: /massmode [+/- [mode]]
Coded by Simplicity
alias massmode { //var %nicks 1 | while (%nicks <= $nick(#,0)) { mode # $1 $nick(#,%nicks) | inc %nicks } }
@All of the above:
I use pipes and make my scripts condense. Thank you all for offering your opinions and suggestions, but I'd rather stick to the way I code. It's easier for me :P Thanks for the positive comments!
@Jethro_:
Most people I know usually have common sense not to use massmode in large channels (the largest I did it in was some 30 people, lmao). But good idea nonetheless, and I admit I didn't think of adding a timer to it :P Also, I know the slashes (//) aren't needed in the code, but again, it's just a personal thing. xP
That is a good mass mode code, but a timer can be used to massively give out modes to people in intervals. This decreases the chances of flooding in a big channel. The double slashes are not needed. Furthermore, your code can be altered to mode people horizontally, rather than vertically. Here are what I mean:> alias massmode { var %nicks 1 | while (%nicks <= $nick(#,0)) { .timer 1 $calc(%nicks * 2) mode $!chan $1 $iif($nick(#,%nicks) != $me,$v1) | inc %nicks } }Below is an example of giving modes horizontally:
alias massmode { var %x, %nicks 1 | while ($nick(#,%nicks)) { if ($v1 != $me) { %x = %x $v1 } | inc %nicks } | mode # $str($1,$nick(#,0)) %x }
Also, you don't want to mode yourself. I added $nick != $me to negate that occurrence.