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

	<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-02-01T12:06:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[opsb]]></name></author>
		<updated>2008-02-01T12:06:40-04:00</updated>

		<published>2008-02-01T12:06:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80547#p80547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80547#p80547"/>
		<title type="html"><![CDATA[bind notc private]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80547#p80547"><![CDATA[
Please read<br><br><a href="http://forum.egghelp.org/viewtopic.php?p=80546&amp;sid=bb169b06d75a76ac2d1163c95ae1585c#80546" class="postlink">http://forum.egghelp.org/viewtopic.php? ... 585c#80546</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9270">opsb</a> — Fri Feb 01, 2008 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-01-31T11:54:42-04:00</updated>

		<published>2008-01-31T11:54:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80513#p80513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80513#p80513"/>
		<title type="html"><![CDATA[bind notc private]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80513#p80513"><![CDATA[
@opsb:<br>Write your proc in a fashion like this:<div class="codebox"><p>Code: </p><pre><code>bind notc -|- *text* yourprocproc yourproc {nick host hand text {dest ""}} { if {$dest != "" || ![isbotnick $dest]} {  return 0 }# Rest of the code here, only evaluated if notice was sent to bot, and not a channel.}</code></pre></div>@TCL_no_TK:<br>Err, think you mixed up the recognized user with the non-recognized ones...<br>Also, I believe the original question was wether the notice was sent to the bot or not, not wether the bot knows the sender or not...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Jan 31, 2008 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-01-31T20:10:35-04:00</updated>

		<published>2008-01-31T11:37:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80505#p80505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80505#p80505"/>
		<title type="html"><![CDATA[bind notc private]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80505#p80505"><![CDATA[
TCL Doc's <blockquote class="uncited"><div>NOTC (stackable)<br><br>bind notc &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt; &lt;dest&gt;<br><br>Description: dest will be a nickname (the bot's nickname, obviously) or a channel name.<br>             mask is matched against the entire notice and can contain wildcards.<br>             It is considered a breach of protocol to respond to a /notice on IRC, so this is intended for internal use (logging, etc.) only.<br>             Note that server notices do not trigger the NOTC bind. If the proc returns 1, Eggdrop will not log the message that triggered this bind.<br><br>New Tcl procs should be declared as<br><br>  proc notcproc {nick uhost hand text {dest ""}} {<br>    global botnick; if {$dest == ""} {set dest $botnick}<br>    ...<br>  }<br><br>for compatibility.<br><br>Module: server</div></blockquote> Example: <div class="codebox"><p>Code: </p><pre><code>bind notc - "*hello my bot*" notc:bot:helloproc notc:bot:hello {nick host handle text {dest ""}} {global botnick if {$dest == ""} {set dest "${botnick}"}  if {[validuser $handle]} {   puthelp "NOTICE $nick :Hello my user! :)"    return  } else {   puthelp "NOTICE $nick :I am not a bot! :("    return }}</code></pre></div> When someone dose something like the following (note that the text used in the bind will match all of the following as well);<br> <strong class="text-strong">/notice Bot errm hello my bot?</strong><br> <strong class="text-strong">/notice Bot hello my bot!</strong><br> <strong class="text-strong">/notice Bot hello my bot</strong><br>The bot will respond with "Hello my user! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">" if the bot has them in there userfile. Or The bot will respond with "I am not a bot! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">" if there not. As long as the "return 1" isn't used, the bot will still log the notice to the log file. The text can be anything, like a nickserv string and can contain wildcards, Match Characters. <blockquote class="uncited"><div>Match characters<br>  Many of the bindings allow match characters in the arguments. Here are the four special characters:<br>   ? matches any single character<br>   * matches 0 or more characters of any type<br>   % matches 0 or more non-space characters (can be used to match a single word)<br>   ~ matches 1 or more space characters (can be used for whitespace between words)</div></blockquote>  hope it helps <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>EDIT: fixed error, Thx nml <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Jan 31, 2008 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[opsb]]></name></author>
		<updated>2008-01-31T10:33:34-04:00</updated>

		<published>2008-01-31T10:33:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80499#p80499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80499#p80499"/>
		<title type="html"><![CDATA[bind notc private]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80499#p80499"><![CDATA[
how to edit<br><br>bind notc -|- *text* proc<br><br>just for private notice.. not for channel notices<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9270">opsb</a> — Thu Jan 31, 2008 10:33 am</p><hr />
]]></content>
	</entry>
	</feed>
