/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.

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-
}
bmsg
Posted by Fubar
Friday, September 02, 2005 05:05pm PDT
i sure we have this on our site already as "bmsg"
;-/
Posted by Strike
Friday, September 02, 2005 06:52pm PDT
Ahh, I looked for it before but didn't see it, probably because it was bmsg not amsg or gmsg.
Anyways, I had to script it for a user after yelling at them for amsging in a channel I'm an op in, figured I'd post it here.
Either way, I found it and mine's a little different because it lets users preset them.  I assume I should modify it to let them either preset it or specify them at time of command.  It should be updated soon.
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world