mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2012
Posts: 59
M
Maelish Offline OP
Babel fish
OP Offline
Babel fish
M
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?

Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
Code:
on *:TEXT:Hello:#channel: {
 if ($network == NETWORK) { msg #channel Hello There }
}


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


Link Copied to Clipboard