mIRC Home    About    Download    Register    News    Help

Print Thread
D
DarkStarX
DarkStarX
D
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

Joined: Dec 2002
Posts: 168
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 168
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