mIRC Homepage
Posted By: Scombr0 Talking from one network to another - 14/07/05 01:07 AM
Ok, this is my question, i already looked it in the mirc.hlp and didn't find it...

As you know mIRC allows you to connect in 2 differents networks in a same mIRC, now the question i have is: how to send a message from one nick in a "network" to a channel in the "other network" but with the nick of the other network... i dont know if you get the idea. Let me explain with an example:

I connect SS in Undernet and SS2 in DALnet for example..

From DALnet's network i send a message (with a command like /msg) but the message must be said by SS in Undernet..

Did you get the point? If dont.. tell me i'll try to explain it again (my english is not so good)

that's the example.. i dont know if there is already something like that..

Ok, thanks in advance for reading this, bye! I wait for an answer asap smile
Posted By: Rounin Re: Talking from one network to another - 14/07/05 02:11 AM
I'm afraid that's not possible - Nor is it possible to add that feature to mIRC.
Posted By: RusselB Re: Talking from one network to another - 14/07/05 02:58 AM
This can be done using scripts. I've searched and found the following which I haven't tested, but should work.
You should've posted this in the Scripts & Pop-ups forum,

Code:
 ;Courtesy Yoinx on Hawkee
alias setchans { 
  set %relay.chan1 #channel1 
  set %relay.chan2 #channel2 
} 
on *:text:*:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan2 $timestamp  $($+(<,$nick,>)) $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan2 $timestamp  $($+(<,$nick,>)) $1- 
  } 
} 
on *:text:*:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan1 $timestamp  $($+(<,$nick,>)) $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan1 $timestamp  $($+(<,$nick,>)) $1- 
  } 
} 

on *:action:*:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan2 $timestamp  $nick $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan2 $timestamp  $nick $1- 
  } 
} 
on *:action:*:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan1 $timestamp  $nick $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan1 $timestamp  $nick $1- 
  } 
} 
on *:join:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan2 Joins: $nick $address($nick,5) 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan2 Joins: $nick $address($nick,5) 
  } 
} 
on *:join:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan1 Joins: $nick $address($nick,5) 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan1 Joins: $nick $address($nick,5) 
  } 
} 
on *:part:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan2 Parts: $nick $address($nick,5) 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan2 Parts: $nick $address($nick,5) 
  } 
} 
on *:part:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan1 Parts: $nick $address($nick,5) 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan1 Parts: $nick $address($nick,5) 
  } 
} 

on @*:mode:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 mode %relay.chan2 $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 mode %relay.chan2 $1- 
  } 
} 
on @*:Mode:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 mode %relay.chan1 $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 mode %relay.chan1 $1- 
  } 
} 
on @*:topic:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 topic %relay.chan2 $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 topic %relay.chan2 $1- 
  } 
} 
on @*:topic:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 topic %relay.chan1 $1- 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 topic %relay.chan1 $1- 
  } 
} 
;courtesy Snooop on Hawkee
on *:kick:%relay.chan1: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan2 7<14AwesomeChat|#Chat7>  $knick $address($knick,5) Has Been Kicked Out. 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan2 7<14Topirc|#Cafe7> $knick $address($knick,5) Has Been Kicked Out. 
  } 
} 

on *:kick:%relay.chan2: { 
  if ( $chan(#).cid == 1 ) { 
    scid 2 msg %relay.chan1 7<14AwesomeChat|#Chat7>  Has Been Kicked Out 
  } 
  if ( $chan(#).cid == 2 ) { 
    scid 1 msg %relay.chan1 7<14Topirc|#Cafe7> $knick $address($knick,5) Has Been Kicked Out 
  } 
} 
 


The two scripters that actually wrote those codes have been referenced in remarked (;) statements
Posted By: Scombr0 Re: Talking from one network to another - 14/07/05 03:16 AM
So that means that when something happen in #channel1 in network "test1" it responses in #channel2 in network "test2".. right?

by the way.. i didn't post this in scripts section because i thought there was a command... sorry for that...
Posted By: RusselB Re: Talking from one network to another - 14/07/05 04:04 AM
As best as I can tell, yes. As I said, other people did the scripting.
Posted By: Bullseye Re: Talking from one network to another - 14/07/05 06:09 AM
/scid -a ame i know this command sends a message to ALL servers AND ALL rooms your in.
I have tryed it on another way.
Try this : /scid -a msg #roomname <message>

It worked for me wink
You only get the message that the nickname(the roomname you gave) is not online unless your in a room that has the same name on both servers.
In that case the message will be said in all the rooms with that name.
Posted By: Rounin Re: Talking from one network to another - 14/07/05 12:52 PM
I think he wanted to send the message to the other network using his nick from the first network though. Which would require some sort of server interconnectivity and reserving the nick in advance on the other network.
Posted By: Riamus2 Re: Talking from one network to another - 14/07/05 01:55 PM
Yeah. You wouldn't be able to use your nick on one network to talk on another network without having that nick there as well.

Why? Because otherwise, I can send all kinds of messages to people using someone's nick while they are online and everyone would believe it was them.
Posted By: Bullseye Re: Talking from one network to another - 15/07/05 05:37 AM
So what your saying is you need to have the same name on both networks(servers) to send the msg ?
I tested it with 3 different names.
Example:
network(servers) i'm on:
server 1 rooms - a, b and c name = jack
server 2 rooms - d, e and f name = bill
server 3 rooms - g, h and i name = brandon

So now i'm connected to 3 servers using 3 names smile
Now jack wants to send a msg to server 3 room h.
he types: /scid -a msg #h good day to you all here.
The msg will be said by brandon in room h.
Posted By: Rounin Re: Talking from one network to another - 15/07/05 11:01 AM
Um no, he's saying that he wants to have the same name on all servers, although he doesn't.
Posted By: Sat Re: Talking from one network to another - 15/07/05 12:29 PM
Quote:
I think he wanted to send the message to the other network using his nick from the first network though.

Actually, the original post makes pretty clear that that is not what he wanted.
Posted By: Riamus2 Re: Talking from one network to another - 15/07/05 02:28 PM
Actually, that IS what he wants:

Quote:

I connect SS in Undernet and SS2 in DALnet for example..

From DALnet's network i send a message (with a command like /msg) but the message must be said by SS in Undernet..


He wants to use SS (Undernet's nick) on Dalnet rather than Dalnet's nick, which is SS2.

That's where the problem is. If he wanted to send a message on Dalnet from Undernet using Dalnet's nick, that wouldn't be hard. But, sending a message to Dalnet using Undernet's nick isn't possible afaik. smile
Posted By: Sat Re: Talking from one network to another - 15/07/05 02:55 PM
Quote:
how to send a message from one nick in a "network" to a channel in the "other network" but with the nick of the other network

DALnet is his active connection, and from there, he wants to let his Undernet connection say something on Undernet. Other network, other channel, other nickname. This is what /scid and /scon are for.

Granted, his example would have been more clear (but only marginally) if he had reversed the order of his words, like this..

Quote:
From DALnet's network i send a message (with a command like /msg) but the message must be said in Undernet by SS..
Posted By: Riamus2 Re: Talking from one network to another - 15/07/05 03:10 PM
I still think that he means the other way... unless/until he returns, I guess we just wait. smile
© mIRC Discussion Forums