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

	<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>2001-09-25T19:09:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2001-09-25T19:09:00-04:00</updated>

		<published>2001-09-25T19:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23#p23</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23#p23"/>
		<title type="html"><![CDATA[refer a channel in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23#p23"><![CDATA[
Not exactly sure if this is what you want, but the 'channels' command returns the list of channels the bot has defined. To do something on each of these channels you would use something like<br><div class="codebox"><p>Code: </p><pre><code>foreach chan [channels] {  puthelp "PRIVMSG $chan :Hello there!"}</code></pre></div>&lt;font size=-1&gt;[ This Message was edited by: slennox on 2001-09-25 17:10 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Tue Sep 25, 2001 7:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-09-25T19:08:00-04:00</updated>

		<published>2001-09-25T19:08:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22#p22</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22#p22"/>
		<title type="html"><![CDATA[refer a channel in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22#p22"><![CDATA[
Sure, it will be a variable just like any other. If you call the variable "the_channel", then in the config file put:<br><br>set the_channel #sheep<br><br>And in your script, do this:<br>proc someproc {} {<br>  global the_channel<br><br>  putserv "PRIVMSG $the_channel :sheep rule!"<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Sep 25, 2001 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stere0]]></name></author>
		<updated>2001-09-25T16:22:00-04:00</updated>

		<published>2001-09-25T16:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20#p20</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20#p20"/>
		<title type="html"><![CDATA[refer a channel in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20#p20"><![CDATA[
Can i refer a channel in a tcl script without put your name? Like assuming the name set in the .conf file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4">stere0</a> — Tue Sep 25, 2001 4:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
