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

	<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>2007-11-17T21:51:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-17T21:51:55-04:00</updated>

		<published>2007-11-17T21:51:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78498#p78498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78498#p78498"/>
		<title type="html"><![CDATA[Re: Ignore a channel in a &quot;foreach chan&quot; loop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78498#p78498"><![CDATA[
<blockquote class="uncited"><div>If someone could allso give me an example on how to ignore multiple channels</div></blockquote>I didn't see this part earlier.  I would do this:<div class="codebox"><p>Code: </p><pre><code># list of channels to make announcements onset mychanlist "#chan1 #chan2 #chan3 #etc"proc announce {text} {  foreach chan $::mychanlist {    if {[botonchan $chan]} {      puthelp "privmsg $chan :$text"    }  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Nov 17, 2007 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wuff]]></name></author>
		<updated>2007-11-17T18:23:37-04:00</updated>

		<published>2007-11-17T18:23:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78487#p78487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78487#p78487"/>
		<title type="html"><![CDATA[Ignore a channel in a &quot;foreach chan&quot; loop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78487#p78487"><![CDATA[
Great.. Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9361">Wuff</a> — Sat Nov 17, 2007 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-17T17:10:43-04:00</updated>

		<published>2007-11-17T17:10:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78486#p78486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78486#p78486"/>
		<title type="html"><![CDATA[Ignore a channel in a &quot;foreach chan&quot; loop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78486#p78486"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {([botonchan $chan]) &amp;&amp; ($chan != "#mychannel")} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Nov 17, 2007 5:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wuff]]></name></author>
		<updated>2007-11-17T14:06:22-04:00</updated>

		<published>2007-11-17T14:06:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78481#p78481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78481#p78481"/>
		<title type="html"><![CDATA[Ignore a channel in a &quot;foreach chan&quot; loop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78481#p78481"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind bot - announce botannouncebind msg m announce gotannounceproc announce {text} {  foreach chan [channels] {    if {[botonchan $chan]} {      puthelp "privmsg $chan :$text"    }  }}proc botannounce {from cmd text} {  announce $text}proc gotannounce {nick uhost hand text} {  putallbots "announce $text"} </code></pre></div><br>I simply want the bot not to post the message on a specific channel, when it runs through all the channels it's on. <br><br>I think it's something like: if ![$chan = "#channel"]<br>But I'm really not sure.<br><br><br>If someone could allso give me an example on how to ignore multiple channels, that would be great, but I would be happy if the script just ignores the one channel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9361">Wuff</a> — Sat Nov 17, 2007 2:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
