mIRC Home    About    Download    Register    News    Help

Print Thread
/msg <flag><server> <target> <message> #679
09/12/02 07:22 PM
09/12/02 07:22 PM
Joined: Dec 2002
Posts: 24
D
DarkStarX Offline OP
Ameglian cow
DarkStarX  Offline OP
Ameglian cow
D

Joined: Dec 2002
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


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Re: /msg <flag><server> <target> <message> #680
09/12/02 08:47 PM
09/12/02 08:47 PM
Joined: Dec 2002
Posts: 169
Wisconsin
J
Jerk Offline
Vogon poet
Jerk  Offline
Vogon poet
J

Joined: Dec 2002
Posts: 169
Wisconsin
I am not opposed to this but it is pretty easily done with an alias.
Code:
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>