mIRC Home    About    Download    Register    News    Help

Print Thread
on action same channel but different servers #242662 15/08/13 02:23 PM
Joined: Aug 2012
Posts: 59
Maelish Offline OP
Babel fish
OP Offline
Babel fish
Joined: Aug 2012
Posts: 59
I am in two channels with the same name, however I need to do some ON ACTIONs differently in each channel. Using the simple example of this...

Code:
on *:TEXT:Hello:#channel:/msg #channel Hello There


How would I specify a specific server or network in that action so that it would only respond on that network?


Find Gamers, my player finder for tabletop RPGers and Wargamers.
Re: on action same channel but different servers [Re: Maelish] #242663 15/08/13 03:38 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
on *:TEXT:Hello:#channel: {
 if ($network == NETWORK) { msg #channel Hello There }
}


Replace NETWORK with the network you are on, leav $network alone.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }