Eliminated /set %variables, halts, /slashes, $null checks, and
replaced goto jumps with while loops. Added if # condition to
/m alias and instruction responses.
Use $2- in the /m command allows excluding more than one nick.
Removed Commands from menubar to avoid usage in non-channel
windows. Also removed the double nesting of 'Mass Commands'
title in menus.
menu nicklist,channel {
-=- Mass Commands -=-
.Inviting:minvite
.Whoising:mwho
.Noticing:mnotice
.Msg-ing:mmsg
}
alias m {
var %note
if # {
if $1 == msg { %note = Mass Msg-ing # | mmsg $2- }
elseif $1 == not { %note = Mass Noticing # | mnotice $2- }
elseif $1 == inv { %note = Mass Inviting # | minvite $2- }
elseif $1 == who { %note = Mass Whoising # | mwho $2- }
else { %note = Correct Usage: /m <msg|not|inv|who> Nick2Bexcluded1 Nick2Bexcluded2 Nick2Bexcluded3 etc }
}
else { %note = You must be in a channel to use '/m' command. }
echo 12 -a *** %note
}
alias mmsg {
var %i 1,%msg $?="Msg What?"
while $nick(#,%i) {
if $v1 != $me && $v1 !isin $1- { msg $v1 %msg }
inc %i
}
}
alias mnotice {
var %i 1,%msg $?="Notice What?"
while $nick(#,%i) {
if $v1 != $me && $v1 !isin $1- { notice $v1 [_Hello_ $v1 $+ ] %msg }
inc %i
}
}
alias minvite {
var %i 1,%c $?="Enter Room Name inviting # to."
while $nick(#,%i) {
if $v1 != $me && $v1 !isin $1- { invite $v1 %c }
inc %i
}
}
alias mwho {
var %i 1
while $nick(#,%i) {
if $v1 != $me && $v1 !isin $1- { whois $v1 }
inc %i
}
}
How can we add a timer between msgs?? to avoid disconnecting with reason (Excess Flood)