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

	<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>2005-12-22T02:21:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-12-22T02:21:42-04:00</updated>

		<published>2005-12-22T02:21:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58572#p58572</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58572#p58572"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58572#p58572"><![CDATA[
<blockquote class="uncited"><div>if {($nick == "nick")} { </div></blockquote>Huh?! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"> Elementary! My Dear Watson!<br>kaotech check <a href="http://www.peterre.com/characters.html" class="postlink">this</a> page.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Dec 22, 2005 2:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kaotech]]></name></author>
		<updated>2005-12-21T17:25:52-04:00</updated>

		<published>2005-12-21T17:25:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58561#p58561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58561#p58561"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58561#p58561"><![CDATA[
if the  [ is red  what is necessary to change on the code  ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7135">kaotech</a> — Wed Dec 21, 2005 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[brood]]></name></author>
		<updated>2005-12-03T06:16:19-04:00</updated>

		<published>2005-12-03T06:16:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57918#p57918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57918#p57918"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57918#p57918"><![CDATA[
thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6675">brood</a> — Sat Dec 03, 2005 6:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-30T13:40:41-04:00</updated>

		<published>2005-11-30T13:40:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57843#p57843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57843#p57843"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57843#p57843"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - {#channel1 [*} preproc pre {nick uhost handle channel text} { if {($nick == "nick")} {  if {[string equal \[SYSOP\] [lindex [split $text] 0]]} { return 0 }  putserv "privmsg #channel2 :$text" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Nov 30, 2005 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[brood]]></name></author>
		<updated>2005-11-30T12:26:51-04:00</updated>

		<published>2005-11-30T12:26:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57841#p57841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57841#p57841"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57841#p57841"><![CDATA[
it doesnt seems to work.<br><blockquote class="uncited"><div>bind pubm - {#channel1 [*} pre<br>proc pre {nick uhost handle channel text} {<br>   if {($nick == "nick")} {<br>   if {"[lindex [split $text] 0]" == "\[SYSOP\]"} { return 0 }<br>         putserv "privmsg #channel2 :$text"<br>   }<br>}</div></blockquote>It still echo the [SYSOP] announcement<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6675">brood</a> — Wed Nov 30, 2005 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-29T17:57:15-04:00</updated>

		<published>2005-11-29T17:57:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57812#p57812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57812#p57812"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57812#p57812"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {"[lindex [split $text] 0]" == "\[SYSOP\]"} { return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Nov 29, 2005 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[brood]]></name></author>
		<updated>2005-11-29T16:27:07-04:00</updated>

		<published>2005-11-29T16:27:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57811#p57811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57811#p57811"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57811#p57811"><![CDATA[
thanks that works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>is it also to filter some lines out?<br><br>like we dont when to let the users see for example<br>[SYSOP] - blabbla<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6675">brood</a> — Tue Nov 29, 2005 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-28T10:38:59-04:00</updated>

		<published>2005-11-28T10:38:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57765#p57765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57765#p57765"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57765#p57765"><![CDATA[
Ah yeah, my bad <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Nov 28, 2005 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-11-28T09:43:55-04:00</updated>

		<published>2005-11-28T09:43:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57762#p57762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57762#p57762"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57762#p57762"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pubm - "\[*" pre</code></pre></div></div></blockquote>psst!<blockquote class="uncited"><div>The mask is matched against the channel name followed by the text and can contain wildcards.</div></blockquote>your are better off with:<div class="codebox"><p>Code: </p><pre><code>bind pubm - {#channel [*} pre</code></pre></div>you can skip the $chan == #channel part then <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Nov 28, 2005 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-27T10:31:48-04:00</updated>

		<published>2005-11-27T10:31:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57743#p57743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57743#p57743"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57743#p57743"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - "\[*" pre</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Nov 27, 2005 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[brood]]></name></author>
		<updated>2005-11-27T08:17:31-04:00</updated>

		<published>2005-11-27T08:17:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57740#p57740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57740#p57740"/>
		<title type="html"><![CDATA[only echo stuff starting with a []]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57740#p57740"><![CDATA[
We have a sitebot on a channel where the SiTEOPS are in. Now we made a channel for users who got axx to the ftp will be in. The problem is the sitebot tels stuff (like pre of a release) we dont want the users to see. So we want to echo stuff the bot says in the users channel, but not that kind of stuff.<br><br>We are using this very easy script atm:<br><blockquote class="uncited"><div>bind pubm * "*" pre<br>proc pre {nick uhost handle channel text} {<br>   if {($nick == "nick") &amp;&amp; ($channel == "#channel")} {<br>         putserv "privmsg #userchannel :$text"<br>   }<br>}</div></blockquote>I was wondering if it could be change, it will only echo stuff we like it to be show in the user channel.<br><br>Like the sitebot announce:<br>&lt;sitebot&gt; PRE : blablabla<br>&lt;sitebot&gt; [TV] - blabla<br><br>So it have to echo only the text that starts with a  "["<br><br>Hope this is clear <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6675">brood</a> — Sun Nov 27, 2005 8:17 am</p><hr />
]]></content>
	</entry>
	</feed>
