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

	<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-10-16T13:00:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-16T13:00:42-04:00</updated>

		<published>2003-10-16T13:00:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28589#p28589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28589#p28589"/>
		<title type="html"><![CDATA[Only -inactive]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28589#p28589"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[channel get #the_channel inactive]} { # the channel is set to -inactive..}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Oct 16, 2003 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-10-16T08:48:50-04:00</updated>

		<published>2003-10-16T08:48:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28583#p28583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28583#p28583"/>
		<title type="html"><![CDATA[Only -inactive]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28583#p28583"><![CDATA[
in the chanfile are 70 or more chans but the bot is only in 5 channels because netbots <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> And I want all bots display msgs in the channel but wehen they msg all channels they get exxesflood.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Thu Oct 16, 2003 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-16T08:42:52-04:00</updated>

		<published>2003-10-16T08:42:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28581#p28581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28581#p28581"/>
		<title type="html"><![CDATA[Only -inactive]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28581#p28581"><![CDATA[
<blockquote class="uncited"><div>if a channel is +inactive, then the bot leaves it, thus the bot won't send it any messages</div></blockquote>Not quite true... The bot leaves it, but if the channel is -n (allowing external messages), the bot will still be able to send messages to it.<br><br>This will get you started on how to modify your script to not send to +inactive channels:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact [channel info #the_channel] -inactive] != -1} {# the channel is -inactive, safe to send messages to ...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Oct 16, 2003 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-16T08:35:50-04:00</updated>

		<published>2003-10-16T08:35:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28579#p28579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28579#p28579"/>
		<title type="html"><![CDATA[Only -inactive]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28579#p28579"><![CDATA[
if a channel is +inactive, then the bot leaves it, thus the bot won't send it any messages<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Oct 16, 2003 8:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-10-16T07:53:14-04:00</updated>

		<published>2003-10-16T07:53:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28575#p28575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28575#p28575"/>
		<title type="html"><![CDATA[Only -inactive]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28575#p28575"><![CDATA[
How can i write this Script that it msgs only in -inactive channels ?<br><div class="codebox"><p>Code: </p><pre><code>proc pub_lol_broadcast {nick host hand chan arg} {        set arg [charfilter $arg]        global lol botnick        if {![check $hand $nick $host]} {                if {$lol(silent) == 1 || [checksilent $hand]} {return 0}            puthelp "NOTICE $nick :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id &lt;password&gt;\002 or \002/msg $botnick silent &lt;password&gt;\002 to no more receive this warning."                return 0        }        if {[llength $arg] &lt; 1} {                puthelp "NOTICE $nick :\002Usage:\002 [string trim $lol(cmdchar)]broadcast &lt;text&gt;"                return 0        }        foreach c [channels] {                if {[matchattr $hand o|o $c] &amp;&amp; [strlwr $c] != [strlwr $chan]} {                        puthelp "PRIVMSG $c :\00314\[\003\002$nick\002\00314\]\003 $arg"                }        }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Thu Oct 16, 2003 7:53 am</p><hr />
]]></content>
	</entry>
	</feed>
