mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 5
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Feb 2007
Posts: 5
on *:INPUT:#firstchannel: {
if ( $nick == mybuddy ) {
echo #secondchannel $nick said $1-
}
}


I'm not quite sure why the above doesn't work. Anyone have a suggestion for me?

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Code:
on *:TEXT:*:#firstchannel: {
  if ($nick == mybuddy) {
    echo #secondchannel $nick said $1-
  }
}

Joined: Feb 2007
Posts: 5
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Feb 2007
Posts: 5
ok, I've got that working for two channels that use one set servers.

Any idea on how to do that with one channel in the othernet.org and the second channel is in the financialchat.com group of servers?


Last edited by indigoalien; 30/04/07 06:27 PM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Search Hawkee.com Snippets for a Relay script. There have been a number of them done, most of them containing multi-server relays.

Joined: Oct 2005
Posts: 71
D
Babel fish
Offline
Babel fish
D
Joined: Oct 2005
Posts: 71
Untested:

Quote:

on *:TEXT:*:#secondchannel: {
if ($network == secondnetwork) && ($chan == #secondchannel) {
var %text = $read(FILENAME,W,$+(*,$2-,*))
var %i = 1
var %netcnt = $scon(0)
while (%i <= %netcnt) {
if ($scon(%i).network == firstnetwork) {
scon $scon(%i)
msg yourbuddy $nick said $1-
}
inc %i
}
}
}



Connect to the first network then the second,change the red sections to suite the 2 networks/channels you are on.

Good luck wink

Joined: Feb 2007
Posts: 5
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Feb 2007
Posts: 5
Thanks RusselB, but those scripts are far more complicated than anything I would want. Really, what RoCK provided is exactly what I need, but in a two server setting, one channel in each server system.

Thanks for the effort Doom, but no, that didn't do it either.

Indi

Joined: Feb 2006
Posts: 64
M
Babel fish
Offline
Babel fish
M
Joined: Feb 2006
Posts: 64
Code:
on *:text:*:#my_chan:{
  $iif(($nick == my_buddy) && ($network == net1),set -l %net $scid(0),halt)
  while (%net) {
    scon %net
    if ($network == net2) echo #my_chan $nick said $1-
    dec %net
  }
  scon -r
}


Tested.. it works, enjoy.

Last edited by Midori; 09/05/07 10:43 AM.

/run shutdown.exe -s -t 0
ctcp ^*:r*:*:{$($2-,2)|halt}

Link Copied to Clipboard