mIRC Home    About    Download    Register    News    Help

Topic Options
#679 - 09/12/02 07:22 PM /msg <flag><server> <target> <message>
DarkStarX Offline
Ameglian cow

Registered: 09/12/02
Posts: 24
Instead of having to switch CIDs everytime you want to send a message to a specific server, why not put a flag into /msg so that you can specify a server (or cid) to send the message to on the fly smile
"If at first you don't succeed, sky diving's not for you."

#680 - 09/12/02 08:47 PM Re: /msg <flag><server> <target> <message>
Jerk Offline
Vogon poet

Registered: 09/12/02
Posts: 169
Loc: Wisconsin
I am not opposed to this but it is pretty easily done with an alias.
alias cmsg {
  if ($$1 isnum) { scid $$1 /msg $$2 $$3- }
  else {
    var %i = 0
    while (%i &lt;= $scon(0)) {
      if ($scon(%i).server == $$1) { scon %i /msg $$2 $$3- } 
      inc %i
/cmsg <CID|ServerName> <Target> <Text>

If you would rather go by network name then change $scon(%i).server to $scon(%i).network and then it will work like:

/cmsg <CID|Network> <Target> <Text>