mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 24
D
Ameglian cow
OP Offline
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."
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
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 <= $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>


Link Copied to Clipboard