This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

nick to nick relay

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
e
eggi
Voice
Posts: 11
Joined: Thu Sep 15, 2005 4:45 pm

nick to nick relay

Post by eggi »

i want a nick to nick relay tcl. Not all the things going on in main window.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Re: nick to nick relay

Post by DragnLord »

eggi wrote:i want a nick to nick relay tcl. Not all the things going on in main window.
"nick to nick relay" is generally called a "query" or "private message"
Are you looking for something that sends a bot user (such as the owner for example) a copy of all private messages received by the bot?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I guess he meant relaying messages of each nick from 1 channel to another. Something like this:

Code: Select all

set relayChannels {#chan1 #chan2 #chan3}

bind pubm - * relay:msgs

proc relay:msgs {nick uhost hand chan arg} {
 global relayChannels
 if {[lsearch -exact $relayChannels $chan] != -1} {
  foreach c $relayChannels {
   if {$c == $chan} {continue}
   puthelp "privmsg $c :\[<$nick> ($chan)\] $arg"
  }
 }
}
This relays messages between relayChannels.
e
eggi
Voice
Posts: 11
Joined: Thu Sep 15, 2005 4:45 pm

Post by eggi »

i want to relay 1 server to another. one nick to another nick.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Search in the Tcl archive. I recall there are script(s) which allow you to choose what to relay from server to server.
Post Reply