<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/6217" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-12-31T15:42:03-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/6217</id>

		<entry>
		<author><name><![CDATA[masterstanf2k]]></name></author>
		<updated>2003-12-31T15:42:03-04:00</updated>

		<published>2003-12-31T15:42:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32037#p32037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32037#p32037"/>
		<title type="html"><![CDATA[Need .nicks or .nicklist for a relay script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32037#p32037"><![CDATA[
that's an OLD version. OLD values. Anyways, can anyone help me with this? How can I make the .name or .names work? THX<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3942">masterstanf2k</a> — Wed Dec 31, 2003 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masterstanf2k]]></name></author>
		<updated>2003-11-24T21:01:21-04:00</updated>

		<published>2003-11-24T21:01:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30652#p30652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30652#p30652"/>
		<title type="html"><![CDATA[Need .nicks or .nicklist for a relay script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30652#p30652"><![CDATA[
As the topic says... I'm looking for a way to do .nicks or .nicklist (preferably .nicklist) in the clink.tcl script. This is the script-<br><blockquote class="uncited"><div>#################################################<br># clink.tcl Channel Linker v1.2<br># Written by {SImPhAt}, May 6th 2002<br>#<br># This script lets you link channels (as many as you<br># like) on different (or same) IRC Networks using 2 or<br># more eggdrops.<br>#<br># Messages are sent in a botnet-link connection.<br>#<br># Easy to configure.<br>#<br># Join, Part, Nick change, Quit, Kick, Msgs and <br># Actions (/me) are currently relayed.<br>#<br># Tested on eggdrop v1.6.x (3 bots) relaying between 3<br># different channels.<br>#<br># E-mail questions or comments to <a href="mailto:simon.boulet@divahost.net">simon.boulet@divahost.net</a>.<br># I'd like to know who is using my script and where, just to<br># see it live in action =).<br>#<br># Changes since 1.0:<br>#1) Linking of channels that do not have the same name<br>#   (ex: linking #help with #help.quebec-chat)<br>#2) Spelling correction in "nick as joined #chan" should be has<br>#3) Stupid bug showing empty () on kick/part/quit with no reason<br>#4) Tested everything with 3 channels/networks/bots.<br>#<br># TODO:<br>#1) Flood protection.<br>#2) List current nicks on the linked side (.names).<br>#3) Remote topic change, kick/ban, op.<br>#<br>#################################################<br># Configuration<br>#################################################<br>#<br># Note: I was relaying #clink.qc(Quebec-Chat) #clink.io(Ionical) and<br># #clink.un(Undernet) all together (those 3 eggdrops where using the<br># same .tcl source).<br>#<br># CLink-QC on Quebec-Chat, CLink-IO on Ionical and CLink-UN on Undernet.<br>#<br># Nickname (botnet-nick) of the bots who are involved in the relaying.<br># Enter all of them, case-sensitive.<br>#<br>set clink_botnicks {"LilBobby" "LilJeff")<br>#<br># The channel(s) you want to relay messages from and the bot that is on.<br>#<br># You need to "set network 'Network-Name'" in your bot(s) .conf file.<br># If you don't want to waste time searching what you put there, simply<br># .rehash your bot with clink.tcl loaded and you should see something like:<br>#<br># clink.tcl: I am CLink-UN running on Undernet.<br># --- Network-Name -------------------^^^^^^^^<br># Loaded clink.tcl: {SImPhAt} Channel Linker v1.x<br>#<br># Case-sensitive.<br>#<br># Syntax: set clink_onchan(#chan@network) "bot-name"<br>set clink_onchan(#linux@StarFusion) "LilJeff"<br>set clink_onchan(#linux@OCIRC) "LilBobby"<br>#<br># The channel(s) where you want the messages to be relayed.<br>#<br># For each channels you need to tell where you want everything<br># to be sent to.<br>#<br># Case-sensitive.<br>#<br># Syntax: set clink_relayto(#from_chan@network1) {"#destination_chan@network2"}<br>set clink_relayto(#linux@OCIRC) {"#linux@StarFusion"}<br>set clink_relayto(#linux@StarFusion) {"#linux@OCIRC"}<br>#<br># Should we add colors to join, part, nick, quit,<br># action, etc.<br>#<br>set clink_usecolor 1<br>#<br># Do you want me to display the network name?<br>#<br>set clink_relaynet 0<br>#<br># Characters to use when displaying the nicknames in channels msgs.<br>#<br># Exemples:<br># &lt;Nickname&gt; hello<br># set clink_charmsgs {"&lt;" "&gt;"}<br>#<br># (Nickname) hello<br>set clink_charmsgs {"(" ")"}<br>#<br>#################################################<br># Script, you should *not* need to change<br># anything below.<br>#################################################<br>bind pubm - * clink_chanpubm<br>bind nick - * clink_channick<br>bind sign - * clink_chanquit<br>bind kick - * clink_chankick<br>bind join - * clink_chanjoin<br>bind part - * clink_chanpart<br>bind ctcp - "ACTION" clink_chanacti <br>bind bot - clink clink_botdat<br><br># Colors settings (Default: mIRC style)<br>if {$clink_usecolor == 1} {<br>set clink_color(pubm) ""<br>set clink_color(nick) "\0033"<br>set clink_color(quit) "\0032"<br>set clink_color(kick) "\0033"<br>set clink_color(join) "\0033"<br>set clink_color(part) "\0033"<br>set clink_color(acti) "\0036"<br>} else {<br>        set clink_color(pubm) ""<br>        set clink_color(nick) ""<br>        set clink_color(quit) ""<br>        set clink_color(kick) ""<br>        set clink_color(join) ""<br>        set clink_color(part) ""<br>        set clink_color(acti) ""<br>}<br># Done<br><br># Check current configuration<br>if {${botnet-nick} == ""} {<br>set {botnet-nick} $nick<br>putlog "clink.tcl: Warning: botnet-nick not defined in .conf file, using \"$nick\"."<br>}<br>if {[lsearch $clink_botnicks ${botnet-nick}] == -1} {<br>die "clink.tcl: Fatal: Bot \"${botnet-nick}\" not defined in clink_botnicks. Please edit clink.tcl and check your configuration."<br>}<br>if {$network == "unknown-net"} {<br>putlog "clink.tcl: Warning: network not defined in .conf file, using \"unknown-net\"."<br>}<br># Done<br><br>proc clink_botsend {chan param} {<br>global clink_onchan {botnet-nick} network clink_relayto<br>foreach clink_relaychan $clink_relayto($chan@$network) {<br>if {[lsearch -exact [bots] $clink_onchan($clink_relaychan)] == -1} {<br>putlog "clink.tcl: Warning: bot $clink_onchan($clink_relaychan) not linked."<br>} else {<br>putbot $clink_onchan($clink_relaychan) "clink $chan $network $param"<br>}<br>}<br>}<br>proc clink_chanpubm {nick uhost hand chan text} {<br>global clink_onchan network<br>if {[info exist clink_onchan($chan@$network)]} {<br>clink_botsend $chan [concat "pubm" [clink_cleannick $nick] $text]<br>}<br>}<br>proc clink_channick {nick uhost hand chan newnick} {<br>        global clink_onchan network<br>        if {[info exist clink_onchan($chan@network)]} {<br>clink_botsend $chan [concat "nick" [clink_cleannick $nick] [clink_cleannick $newnick]]<br>}<br>}<br>proc clink_chanquit {nick uhost hand chan reason} {<br>        global clink_onchan network<br>        if {[info exist clink_onchan($chan@$network)]} {<br>clink_botsend $chan [concat "quit" [clink_cleannick $nick] $uhost $reason]<br>}<br>}<br>proc clink_chankick {nick uhost hand chan knick reason} {<br>global clink_onchan network<br>if {[info exist clink_onchan($chan@$network)]} {<br>clink_botsend $chan [concat "kick" [clink_cleannick $nick] [clink_cleannick $knick] $reason]<br>}<br>}<br>proc clink_chanjoin {nick uhost hand chan} {<br>        global clink_onchan network<br>        if {[info exist clink_onchan($chan@$network)]} {<br>clink_botsend $chan [concat "join" [clink_cleannick $nick] $uhost]<br>}<br>}<br>proc clink_chanpart {nick uhost hand chan reason} {<br>        global clink_onchan network<br>        if {[info exist clink_onchan($chan@$network)]} {<br>clink_botsend $chan [concat "part" [clink_cleannick $nick] $uhost $reason]<br>}<br>}<br>proc clink_chanacti {nick uhost hand chan action text} {<br>        global clink_onchan network<br>if {[info exist clink_onchan($chan@$network)]} {<br>clink_botsend $chan [concat "acti" [clink_cleannick $nick] $action $text]<br>}<br>}<br>proc clink_botdat {bot clink param} {<br>global clink_relaynet clink_color clink_charmsgs clink_relayto network<br>if {$clink_relaynet == 1} {<br>set clink_network "\[[lindex $param 1]\] "<br>} else {<br>set clink_network ""<br>}<br>if {[lrange $param 5 end] != ""} {<br>set reason "\([lrange $param 5 end]\)"<br>} else {<br>set reason ""<br>}<br>set clink_destchan [lindex [split [lindex $clink_relayto([lindex $param 0]@[lindex $param 1]) [lsearch -glob $clink_relayto([lindex $param 0]@[lindex $param 1]) "*@$network"]] @] 0]<br>switch [lindex $param 2] {<br>pubm{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(pubm)[lindex $clink_charmsgs 0][lindex $param 3][lindex $clink_charmsgs 1] [lrange $param 4 end]" }<br>nick{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(nick)*** [lindex $param 3] is now known as [lindex $param 4]" }<br>quit{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(quit)*** [lindex $param 3] \([lindex $param 4]\) Quit $reason" }<br>kick{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(kick)*** [lindex $param 4] was kicked by [lindex $param 3] $reason" }<br>join{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(join)*** [lindex $param 3] \([lindex $param 4]\) has joined [lindex $param 0]" }<br>part{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(part)*** [lindex $param 3] \([lindex $param 4]\) has left [lindex $param 0] $reason" }<br>acti{ putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(acti)* [lindex $param 3] [lrange $param 5 end]" }<br>default { putlog "clink.tcl: Warning: unknown action type \"[lindex $param 2]\" for [lindex $param 0]." }<br>}<br>}<br>proc clink_cleannick {nick} {<br>if {[string range $nick 0 0] == "\{"} {<br>set nick "\\$nick"<br>}<br>        return $nick<br>}<br>putlog "clink.tcl: I am ${botnet-nick} running on $network."<br>putlog "Loaded clink.tcl: {SImPhAt} Channel Linker v1.2"</div></blockquote>BTW, I don't think I even configured it right... lol... but anyways.... looking for the .nicklist feature so that on one side of the relay... people can see who's on the other. THX <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3942">masterstanf2k</a> — Mon Nov 24, 2003 9:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
