mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2014
Posts: 2
S
sum1 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Apr 2014
Posts: 2
I have been searching high and low and the answer to this seemingly easy question has been eluding me. I have a script that echo's text from a user on one channel to another channel which works fine however I now wish to send the msg to #bla2 on a different network how can this be accomplished?



Quote:
on 1:TEXT:*PRE*:#jokes: {
if ($nick == Thejoker) {
var %type = $strip($2)
var %punchline = $strip($3)
msg #bla %type %punchline }
}

Joined: Apr 2014
Posts: 2
S
sum1 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Apr 2014
Posts: 2
//scid 1 msg #bla %type %punchline}

will send it to the server with ID of 1. Is there a way I can set it to a network name rather then ID incase the next time I start mirc the desirec destination is given a different ID #?

Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
Maybe like this:

Code:
if $scon(1).network == NetworkNameHere {
  scid $scon(1) msg #bla %type %punchline
}


Link Copied to Clipboard