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

	<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>2009-04-16T15:39:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-16T15:39:20-04:00</updated>

		<published>2009-04-16T15:39:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88463#p88463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88463#p88463"/>
		<title type="html"><![CDATA[bind pub - * doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88463#p88463"><![CDATA[
A suggestion when creating more complex patterns, use the % wildcard to match any channel instead of *.<br>The reason for this is that * matches 0 or more characters, including whitespaces, while % will match 1 word. The advantage of this usage becomes apparent when dealing with more complex patterns such as this:<div class="codebox"><p>Code: </p><pre><code>#We try to catch anything that starts with !hello worldbind pub "* !hello world*" pubm:hello#Looks good eh? until we realize it will also trigger on "Blah !hello world", which we did not want!bind pub "% !hello world*" pubm:hello#Now, this works as intended. It'll only trigger when the text starts with "!hello world", not whenever it's anywhere in the text.</code></pre></div>This could also be extended to only trigger in local channels (&amp;channel) by using "&amp;% !hello world*", and so on...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Apr 16, 2009 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-04-13T18:10:20-04:00</updated>

		<published>2009-04-13T18:10:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88422#p88422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88422#p88422"/>
		<title type="html"><![CDATA[bind pub - * doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88422#p88422"><![CDATA[
Well I don't like using pub, so I'd suggest you to use pubm (public  text matching)<br><br>If you want to bind all channels, you'd have this:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm "* *" proc1</code></pre></div>If you only want to bind in a specific chan, you must do it like this:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm "#channel1 *" proc1</code></pre></div>proc1 will hava to be called with the arguments nick uhost hand chan text<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Mon Apr 13, 2009 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-04-13T18:10:10-04:00</updated>

		<published>2009-04-13T18:10:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88421#p88421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88421#p88421"/>
		<title type="html"><![CDATA[bind pub - * doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88421#p88421"><![CDATA[
use pubm for that<br><blockquote class="uncited"><div>    (6)  PUBM (stackable)<br>         bind pubm &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<br><br>         Description: just like MSGM, except it's triggered by things said<br>           on a channel instead of things /msg'd to the bot. The mask is<br>           matched against the channel name followed by the text and can<br>           contain wildcards. Also, if a line triggers a PUB bind, it will not<br>           trigger a PUBM bind.<br>         Module: irc</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Mon Apr 13, 2009 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[boehmi]]></name></author>
		<updated>2009-04-13T17:10:17-04:00</updated>

		<published>2009-04-13T17:10:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88419#p88419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88419#p88419"/>
		<title type="html"><![CDATA[bind pub - * doesn't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88419#p88419"><![CDATA[
I already have another problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>I want my bot to evaluate any string that is written to the channel with a procedure...<br>i used <div class="codebox"><p>Code: </p><pre><code>bind pub - * procedureorbind pub - "*" procedure</code></pre></div>but he binds the string "*" to procedure and not the wildcard *<br><br>What's my mistake?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10592">boehmi</a> — Mon Apr 13, 2009 5:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
