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

	<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>2006-12-10T09:03:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2006-12-10T09:03:36-04:00</updated>

		<published>2006-12-10T09:03:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68835#p68835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68835#p68835"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68835#p68835"><![CDATA[
THANKYOU nml375<br><br>For the clear explaination on these argument<br><br>I don't really understand the documentation<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Sun Dec 10, 2006 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-12-10T08:56:27-04:00</updated>

		<published>2006-12-10T08:56:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68833#p68833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68833#p68833"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68833#p68833"><![CDATA[
Then considder this example:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * myprocproc myproc {arg1 arg2 arg3 arg4 arg5} { putlog "myproc was called by $arg1 from host $arg2 identified as $arg3 on channel $arg4 saying $arg5"}</code></pre></div>Just as Sir_Fz said, it really does'nt matter what you call those parameters..<br>You just specify which arguments your proc should take. Once you call your proc with: <div class="codebox"><p>Code: </p><pre><code>myproc "the nick" "the host" "the handle" "the channel" "the text"</code></pre></div> these values will be assigned to local variables within the proc, named as you specify in the header (in this example arg1, arg2, arg3, arg4, arg5).<br><br>All "bind" does is calling whatever command-line you specified (in this example "myproc"), with a number of arguments (5 arguments for the pubm binding) holding various information on the event that triggered the binding<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Dec 10, 2006 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-10T08:54:20-04:00</updated>

		<published>2006-12-10T08:54:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68832#p68832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68832#p68832"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68832#p68832"><![CDATA[
Didn't you read what me and rosc2112 showed you? look close and notice the <strong class="text-strong">&lt;text&gt;</strong> parameter. There are loads and loads of examples in this forum, <a href="http://forum.egghelp.org/search.php" class="postlink">search</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 10, 2006 8:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2006-12-10T06:28:02-04:00</updated>

		<published>2006-12-10T06:28:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68830#p68830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68830#p68830"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68830#p68830"><![CDATA[
Yah, i mean inside the proc<br><br>how can I get the message string?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Sun Dec 10, 2006 6:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-09T17:41:37-04:00</updated>

		<published>2006-12-09T17:41:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68813#p68813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68813#p68813"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68813#p68813"><![CDATA[
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. 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>You can name them whatever you want as long as the number of attributes is correct.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Dec 09, 2006 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-09T17:35:24-04:00</updated>

		<published>2006-12-09T17:35:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68812#p68812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68812#p68812"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68812#p68812"><![CDATA[
(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. 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.<br>         Module: irc<br><br><br>Assuming your proc used the above example format, your msg would be inside of $text<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Dec 09, 2006 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2006-12-09T17:15:18-04:00</updated>

		<published>2006-12-09T17:15:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68811#p68811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68811#p68811"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68811#p68811"><![CDATA[
Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Ermm...<br><br>Sorry but...<br><br>What is the variable for the channel message in variable?<br><br>I know nick is $nick, channel name is $channel, wat about the channel message? Is it $pubm ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Sat Dec 09, 2006 5:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-08T08:55:53-04:00</updated>

		<published>2006-12-08T08:55:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68770#p68770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68770#p68770"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68770#p68770"><![CDATA[
Also <strong class="text-strong">%</strong> matches a single word (no white spaces).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Dec 08, 2006 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-12-08T07:49:47-04:00</updated>

		<published>2006-12-08T07:49:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68769#p68769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68769#p68769"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68769#p68769"><![CDATA[
bind masks do not support regular expressions, but only simple wildcards supported by "string match", ie ?, *, [chars], \x<br><br>? would match any single character<br>* would match any number of characters<br>[chars]  would match any single character of the ones in chars, also supports intervals such as a-z<br>\x would match the single character x (used for escaping special characters such as ?*[]\)<br><br>The closest thing you could use would be something like this: "*.*.*.*", but that would match anything said that has three or more dots in it...<br>If you really wish to use regular expressions, considder doing the matching within the CallMain proc, rather than doing it in the binding..  regexp is your friend here<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Dec 08, 2006 7:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Lu5ck]]></name></author>
		<updated>2006-12-08T07:35:38-04:00</updated>

		<published>2006-12-08T07:35:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68767#p68767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68767#p68767"/>
		<title type="html"><![CDATA[MASK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68767#p68767"><![CDATA[
Hi all,<br><br>It my first time writing a TCL script.<br><br>I wanna ask, is the MASK inside the bind accept the same thing Normal IRC does?<br><br>Will this work?<div class="codebox"><p>Code: </p><pre><code>bind PUBM - /(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/g CallMain</code></pre></div>If it don't can anyone point me to a site that contain all the matching command?<br><br>The above "/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/g" is actually meant to react if someone spammed a ip address like 21.203.203.11<br>Well, I did that for my IRC script, but I trying to convert the coding to TCL ones.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8476">Lu5ck</a> — Fri Dec 08, 2006 7:35 am</p><hr />
]]></content>
	</entry>
	</feed>
