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

	<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>2002-02-25T11:07:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-02-25T11:07:00-04:00</updated>

		<published>2002-02-25T11:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4917#p4917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4917#p4917"/>
		<title type="html"><![CDATA[Listing all the channels the bot is on]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4917#p4917"><![CDATA[
yah, something like<br><blockquote class="uncited"><div>proc onchannels {} {<br>set onchans ""<br>foreach i [channels] {<br>if {[botison $i]} {lappend onchans $i}<br>}<br>return $onchans<br>}</div></blockquote>the this will make the command 'onchannels' return a list in the same format as 'channels'<br><br>another way would be to ask the server what channels you're on (ie, send a WHOIS $botnick and capture the reply)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Mon Feb 25, 2002 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-02-25T10:57:00-04:00</updated>

		<published>2002-02-25T10:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4916#p4916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4916#p4916"/>
		<title type="html"><![CDATA[Listing all the channels the bot is on]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4916#p4916"><![CDATA[
You can view the channels by using .status.<br>If you mean a Tcl command, 'channels' is the correct command, you just need to do a botonchan check to see if the bot is actually on the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Mon Feb 25, 2002 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-02-25T10:43:00-04:00</updated>

		<published>2002-02-25T10:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4914#p4914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4914#p4914"/>
		<title type="html"><![CDATA[Listing all the channels the bot is on]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4914#p4914"><![CDATA[
How can I return a list of all the channels the bot is on (not only those that are defined in the config. file but all the chans the bot is on) ?<br><br>The command "channels" returns the list of the channels the bot is monitoring (or trying to). Meaning channels that are defined in the bot's configuration file only.<br><br>If I make the bot join a channel by using .+chan &lt;chan_name&gt; then that channel will not be included in the list returned by the command "channels" and so I am getting an error in my script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Mon Feb 25, 2002 10:43 am</p><hr />
]]></content>
	</entry>
	</feed>
