<?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/16963" />

	<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>2009-06-17T00:54:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-06-17T00:54:57-04:00</updated>

		<published>2009-06-17T00:54:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89216#p89216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89216#p89216"/>
		<title type="html"><![CDATA[How to use a tcl script on two #channels?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89216#p89216"><![CDATA[
my pleasure, fine it works out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>please also add [SOLVED] to your threads topic as a prefix if it has been solved <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Wed Jun 17, 2009 12:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[N30]]></name></author>
		<updated>2009-06-16T12:49:39-04:00</updated>

		<published>2009-06-16T12:49:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89211#p89211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89211#p89211"/>
		<title type="html"><![CDATA[How to use a tcl script on two #channels?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89211#p89211"><![CDATA[
Thank you!:). Worked perfectly!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10712">N30</a> — Tue Jun 16, 2009 12:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-06-16T11:16:38-04:00</updated>

		<published>2009-06-16T11:16:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89209#p89209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89209#p89209"/>
		<title type="html"><![CDATA[How to use a tcl script on two #channels?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89209#p89209"><![CDATA[
usually that one should do the trick, untested though:<br><div class="codebox"><p>Code: </p><pre><code>Script =set listenport ""# port for your script you want to listen on (you need to set same port in php script)set password ""# password (you need to set same password in php script)set multichannels [list #channel1 #channel2]# channel you want to send output to# add more channels if you want using the same way as abovelisten $listenport script botlistenproc botlisten {idx} {control $idx botlisten2}proc botlisten2 {idx args} {set args [join $args]set password1 [lindex [split $args] 0]set message [join [lrange [split $args] 1 end]]if {[string match $::password $password1]} {# NEW FROM HEREforeach cchannel $::multichannels {putquick "PRIVMSG $cchannel :$message"# NEW END HERE}} else {putlog "Unauthorized person tried to connect to the bot"}}</code></pre></div>correct syntax ftw!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Tue Jun 16, 2009 11:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[N30]]></name></author>
		<updated>2009-06-16T09:53:31-04:00</updated>

		<published>2009-06-16T09:53:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89207#p89207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89207#p89207"/>
		<title type="html"><![CDATA[How to use a tcl script on two #channels?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89207#p89207"><![CDATA[
How to edit "Set Chan " so i can use 2 #channels?<br>Script  =<br>set listenport ""<br><br># port for your script you want to listen on (you need to set same port in php script)<br><br>set password ""<br><br># password (you need to set same password in php script)<br><br>set chan ""<br><br># channel you want to send output to<br><br>listen $listenport script botlisten<br><br>proc botlisten {idx} {<br>    control $idx botlisten2<br>}<br><br>proc botlisten2 {idx args} {<br><br>    set args [join $args]<br>    set password1 [lindex [split $args] 0]<br>    set message [join [lrange [split $args] 1 end]]<br>    <br>    if {[string match $::password $password1]} {<br>        putquick "PRIVMSG $::chan :$message"<br>    } else {<br>        putlog "Unauthorized person tried to connect to the bot"<br>    }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10712">N30</a> — Tue Jun 16, 2009 9:53 am</p><hr />
]]></content>
	</entry>
	</feed>
