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

	<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>2012-04-01T06:00:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-04-01T06:00:43-04:00</updated>

		<published>2012-04-01T06:00:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99154#p99154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99154#p99154"/>
		<title type="html"><![CDATA[botonchan for +inactive channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99154#p99154"><![CDATA[
Moved to <em class="text-italics">Eggdrop Help</em> section.<br><br>I've tested the same thing on my bot version 1.6.20 that's sitting on Undernet network (<em class="text-italics">net-type 2</em>) and I get the same result as you.<br><div class="codebox"><p>Code: </p><pre><code>foreach cahn [channels] {set status [channel get $chan inactive]set onch [botonchan $chan]putlog "chan: $chan | on channel: $onch | status: $status"}</code></pre></div>returns:<blockquote class="uncited"><div>chan: #chan1 | on channel: 1 | status: 0<br>chan: #chan2 | on channel: 1 | status: 1</div></blockquote>This must be a bug or something. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Apr 01, 2012 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[npax]]></name></author>
		<updated>2012-04-01T04:36:46-04:00</updated>

		<published>2012-04-01T04:36:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99153#p99153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99153#p99153"/>
		<title type="html"><![CDATA[botonchan for +inactive channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99153#p99153"><![CDATA[
eggdrop v1.6.21<br>Tcl version: 8.5.10<br><br>trying script:<div class="codebox"><p>Code: </p><pre><code>bind pub m|m "!channels" pub:channelsproc pub:channels {nick host hand chan args} {if {[lindex $args 0] == "on"} {set active ""foreach ch [channels] {if {[botonchan $ch]} {append active " $ch"}}putserv "PRIVMSG $chan :Bot is on channels:$active"} else {putserv "PRIVMSG $chan :Channels list: [channels]"}}</code></pre></div>commands:<br>!channels   - all channels<br>!channels on   - only active channels<br><br>both commands returns all channels, include +inactive ones<br><br>only if I replase<div class="codebox"><p>Code: </p><pre><code>if {[botonchan $ch]} {</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>if {![channel get $ch inactive]} {</code></pre></div>that works fine<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11763">npax</a> — Sun Apr 01, 2012 4:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2012-03-31T23:10:49-04:00</updated>

		<published>2012-03-31T23:10:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99152#p99152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99152#p99152"/>
		<title type="html"><![CDATA[Re: botonchan for +inactive channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99152#p99152"><![CDATA[
<blockquote class="uncited"><div>&lt;sp33chy&gt; I am sp33chy, running eggdrop v1.6.17: 88 users (mem: 948k).<br>...<br>&lt;sp33chy&gt; OS: CYGWIN_NT-5.1 1.5.18(0.132/4/2)<br>&lt;sp33chy&gt; Tcl library: /cygdrive/f/sp33chy/lib/tcl8.4<br>&lt;sp33chy&gt; Tcl version: 8.4.11 (header version 8.4.11)<br>...<br>&lt;speechles&gt; .chanset #channel +inactive<br>&lt;sp33chy&gt; Successfully set modes { +inactive } on #channel.<br>&lt;speechles&gt; .tcl set a [botonchan #channel]<br>&lt;sp33chy&gt; Tcl: 0<br>&lt;speechles&gt; .tcl set a [onchan "sp33chy" "#channel"]<br>&lt;sp33chy&gt; Tcl: 0<br>&lt;speechles&gt; .chanset #channel -inactive<br>&lt;sp33chy&gt; Successfully set modes { -inactive } on #channel.<br>&lt;speechles&gt; .tcl set a [botonchan #channel]<br>&lt;sp33chy&gt; Tcl: 1<br>&lt;speechles&gt; .tcl set a [onchan "sp33chy" "#channel"]<br>&lt;sp33chy&gt; Tcl: 1</div></blockquote>1.6.17 with tcl 8.4 ... This works as expected for me....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Mar 31, 2012 11:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[npax]]></name></author>
		<updated>2012-03-31T17:02:44-04:00</updated>

		<published>2012-03-31T17:02:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99151#p99151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99151#p99151"/>
		<title type="html"><![CDATA[botonchan for +inactive channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99151#p99151"><![CDATA[
Why function [botonchan $chan] returns 1 for all bot's channels, including with +inactive option?<br>Same with [onchan $botnick $chan]<br>I use eggdrop 1.6.21<br><br>I know about [channel get $chan inactive] - it works, but the bot is not on inactive channels!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11763">npax</a> — Sat Mar 31, 2012 5:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
