mIRC Homepage
Want a script to pick up something from one channel on network 1 and send it to another channel on network 2, but how do I get it to send the msg to XXXXX network? confused
http://www.mircscripts.net/comments.php?cid=1721

There are probably plenty of scripts out there like this. But, a quick breakdown:

To send message to another channel, on another server, you could do something like:

Code:
on *:text:*:#channel: {
  if ($network == [color:red]TheNetworkYouGetTextFrom[/color]) {
    var %network = [color:red]TheNetworkYouSendTextTo[/color] , %schan = [color:red]#ChannelToSendTextTo[/color]
    var %text = $+(<,$nick,>) $1- , %i = 1
    while ($scon(%i)) {
      if ($scon(%i).network == %network) { scon $scon(%i) msg %schan %text | return }
      inc %i
    }
  }
}


Just adjust the variables as needed.
You should avoid passing /scon unknown content (here's why). In your case, the simplest solution is using msg %schan % $+ text instead of msg %schan %text.
Oh right.

Could always just use $(%text,0)
© mIRC Discussion Forums