Multi-network Message Snippet

By #Warizardworks on Apr 03, 2010

This is a snippet for posting the same message that you might want to say on more than one server. For example, if you posted "brb" and you are on more than one server, it'll post to all.

The commands are:
/globalmsg message here
/globalme action here

To load it, just put it in the remotes tab of your script editor. Enjoy!

~ This snippet was made by Wariopower of #WarizardWorks on irc.purplesurge.net ~

;The multi-server message alias
alias globalmsg {
  if ($1- == $null) {
    echo -ast You need a message to post $me $+ .
  }
  else {
    set %global $scid(0)
    while (%global > 0) {
      if ($network != $null) { 
        scon %global amsg $1-
      }
      dec %global
    }
  }
}
;The multi-server action alias
alias globalme {
  if ($1- == $null) {
    echo -ast You need an action to post $me $+ . 
  }
  else {
    set %global $scid(0)
    while (%global > 0) {
      if ($network != $null) { 
        scon %global ame $1-
      }
      dec %global
    }
  }
}

Comments

Sign in to comment.
#Warizardworks   -  Apr 06, 2010

Nice. I guess I should've done that... :P

  • WP
 Respond  
Jethro   -  Apr 06, 2010

You could use /scon or /scid as RePod metnioned, but with the -at1 switch:

alias globalmsg { scid -at1 amsg $$1- }
alias globalme { scid -at1 ame $$1- }

This sends your messages to all your connections.

 Respond  
#Warizardworks   -  Apr 06, 2010

Hmm, yeah probably haha. I forget the command a lot so I guess I just figured making the snippet. xP

  • WP
 Respond  
  -  Apr 04, 2010

.

 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.