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

	<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>2008-12-09T08:36:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-09T08:36:57-04:00</updated>

		<published>2008-12-09T08:36:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86147#p86147</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86147#p86147"/>
		<title type="html"><![CDATA[pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86147#p86147"><![CDATA[
Yes, "%" is a wildcard and as I said it matches a single word (which is the channel name in your case). If you just use "*" as the mask, it should normally work the same as "% *" as well but bare in mind that the first word in the PUBM bind-mask is the channel name (in case you wanted to limit a bind to just a single channel).<br><br>To make it clearer, take the following example:<div class="codebox"><p>Code: </p><pre><code>bind pubm - "* hello" someproc</code></pre></div>this triggers someproc when someone says "hello" or even "hi all!! hello" or any line that ends with " hello" or simply matches "hello" (* matches 0, 1 or more words). As for this example:<div class="codebox"><p>Code: </p><pre><code>bind pubm - "% hello" someproc</code></pre></div>this will trigger someproc only when someone says "hello" because % matches the channel name, and every thing after it is the text to be matched.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 09, 2008 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[topdawg_b]]></name></author>
		<updated>2008-12-09T00:06:56-04:00</updated>

		<published>2008-12-09T00:06:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86143#p86143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86143#p86143"/>
		<title type="html"><![CDATA[pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86143#p86143"><![CDATA[
I figured  out after playing  with it  for a bit that it returned the whole string.  thought it  returned just like pub did   since i never got it to work. why does it not  work without the %?? are u saying that % is a  wildcard? and the  first word  in the  string is  the channel name? if so and i wasnt going to use the %  what would  have to use to make it work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10347">topdawg_b</a> — Tue Dec 09, 2008 12:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-08T21:25:33-04:00</updated>

		<published>2008-12-08T21:25:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86139#p86139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86139#p86139"/>
		<title type="html"><![CDATA[pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86139#p86139"><![CDATA[
From Tcl-commands.doc:<blockquote class="uncited"><div>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. <strong class="text-strong">The mask is<br>matched against the channel name followed by the text</strong> and can<br>|contain wildcards. If the proc returns 1, Eggdrop will not log<br>|the message that triggered this bind. PUBM binds are processed<br>|before PUB binds. If the exclusive-binds setting is enabled,<br>|PUB binds will not be trigged by text that a PUBM bind has<br>|already handled.</div></blockquote>"%" matches a single word (no spaces). So, it's usually used to match any channel since the first word in the bind's mask is the channel-name.<br><br>MSGM is for private messages with the bot and its bind-mask matches the text.<br><br>The last argument in a PUBM procedure is the whole text, you can parse it to extract the needed information (we can help more if you provide more info).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 08, 2008 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[topdawg_b]]></name></author>
		<updated>2008-12-07T23:42:07-04:00</updated>

		<published>2008-12-07T23:42:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86124#p86124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86124#p86124"/>
		<title type="html"><![CDATA[pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86124#p86124"><![CDATA[
i have  3  questions regarding this bind and 1 general question <br>I'll try to be as short as possible.<br><br><br>the  typical example in many docs is<br>bind pubm - hello pubm:hello<br>I've  tried all kinds of  different  words  and it  never  triggers on partyline  when i do .binds  the number is 0<br>if i use pub instead of pubm  works fine.  but pub wont work for  what I  need because it only triggers  on 1 word.<br>after many hours of reading i saw a vaiation of this<br>bind pubm - "% hello" pubm:hello<br>I tried  that and it  worked. so   my  questions are.<br><br>1. what am I doing  wrong? why wont it trigger  in the normal way.<br><br>2. what is the % for  what does it  do and is there a list of others ? msgm also does not  work and the % did not  fix it.<br><br>3. Id like to  use the  word that  triggered the  event  $text  has  the 2nd on  but  one of my scripts triggers on  part of a word and i need to know in the  proc  what whole word they used to trigger it.<br><br>4. is there a doc out there that shows  all the  binds with al lthe switches and such? I have a tcl-commands.doc  btu there is a lot that is not in there.<br>thanks  so much for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10347">topdawg_b</a> — Sun Dec 07, 2008 11:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
