/gmsg
Posted by Strike
Friday, September 02, 2005
Description: /amsg with exempt channels
Just copy the script into a remotes file, edit where it says to edit, and use /gmsg instead of /asmg.
Just copy the script into a remotes file, edit where it says to edit, and use /gmsg instead of /asmg.
alias exemptchans {
;LIST ALL CHANNELS YOU DO NOT WANT TO AMSG TO ON
;THE LINE BELOW, SEPARATED BY SPACES.
;DO NOT DELETE 'return'.
return #guildwars #support #gamesurge #help #registration #irpg
;DO NOT EDIT ANYTHING BELOW THIS LINE
;UNLESS YOU KNOW WHAT YOU'RE DOING.
}
alias gmsg {
var %channum = $chan(0)
var %chanlist
if ($chan(%channum) !isin $exemptchans) {
%chanlist = %chanlist $+ $chan(%channum)
echo $chan(%channum) $timestamp < $+ $me $+ > $1-
}
%channum = %channum - 1
while (%channum != 0) {
if ($chan(%channum) !isin $exemptchans) {
%chanlist = %chanlist $+ , $+ $chan(%channum)
echo $chan(%channum) $timestamp < $+ $me $+ > $1-
}
%channum = %channum - 1
}
quote PRIVMSG %chanlist : $+ $1-
}