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

	<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-09-11T02:22:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[WazzaUK]]></name></author>
		<updated>2006-09-11T02:22:42-04:00</updated>

		<published>2006-09-11T02:22:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66247#p66247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66247#p66247"/>
		<title type="html"><![CDATA[nick change]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66247#p66247"><![CDATA[
yep sign covered quit/ping timeout<br><br>what about nick change - is there a list of these procedures anywhere?<br><br>got it lol<br><br>bind nick &lt;flags&gt; &lt;mask&gt; &lt;proc&gt; procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;newnick&gt;<br><br>Stackable<br>Triggered when someone changes nicknames. Wildcards are allowed. The mask is matched against #channel newnick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7928">WazzaUK</a> — Mon Sep 11, 2006 2:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-09-10T19:59:00-04:00</updated>

		<published>2006-09-10T19:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66246#p66246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66246#p66246"/>
		<title type="html"><![CDATA[bind join/part]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66246#p66246"><![CDATA[
Yup, quit is a completely separate (irc) command from part..<br>Hence it got its own binding, "sign":<blockquote class="uncited"><div>         bind sign &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;reason&gt;<br><br>         Description: triggered by a signoff, or possibly by someone who got<br>           netsplit and never returned. The signoff message is the last<br>           argument to the proc. Wildcards can be used in the mask, which is<br>           matched against '#channel nick!user@host'.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Sep 10, 2006 7:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WazzaUK]]></name></author>
		<updated>2006-09-10T19:27:14-04:00</updated>

		<published>2006-09-10T19:27:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66245#p66245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66245#p66245"/>
		<title type="html"><![CDATA[Quit / Ping timeout]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66245#p66245"><![CDATA[
seems that part doesnt cover quit and pingtime out - any ideas???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7928">WazzaUK</a> — Sun Sep 10, 2006 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WazzaUK]]></name></author>
		<updated>2006-09-10T18:00:38-04:00</updated>

		<published>2006-09-10T18:00:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66243#p66243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66243#p66243"/>
		<title type="html"><![CDATA[i see it]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66243#p66243"><![CDATA[
i forgot a msg param in part procedure<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7928">WazzaUK</a> — Sun Sep 10, 2006 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WazzaUK]]></name></author>
		<updated>2006-09-10T17:36:14-04:00</updated>

		<published>2006-09-10T17:36:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66242#p66242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66242#p66242"/>
		<title type="html"><![CDATA[bind join/part]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66242#p66242"><![CDATA[
im trying to set a field in a MYSQL table when users are in a particular channel ('yes' when join, 'no' when part). Join works fine, but part doesnt even seem to call the procedure. Ive gotta be missing something..<br><br>Any ideas.....<br><div class="codebox"><p>Code: </p><pre><code>load /usr/local/lib/mysqltcl-3.02/libmysqltcl3.02.sopackage require mysqltclset db_handle [mysqlconnect -host ###.###.###.### -socket /var/lib/mysql/mysql.sock -user &lt;user&gt; -password &lt;password&gt; -db &lt;database&gt;bind join - "#channel *" join_mainbind part - "#channel *" part_mainproc join_main {nick uhost hand channel} {global db_handle botnick  if {$nick==$botnick} {return 0}  set sql "UPDATE users SET onirc = 'yes' WHERE username = '$nick'"  putloglev d * "ircstats: executing $sql"  set result [mysqlexec $db_handle $sql]  if {$result != 1} {    putlog "SQL - error"  } else {     set id [mysqlinsertid $db_handle]     puthelp "PRIVMSG $channel :User Online \002$nick\002 added"  }}proc part_main {nick uhost hand channel} {global db_handle botnick  if {$nick==$botnick} {return 0}  set sql "UPDATE users SET onirc = 'no' WHERE username = '$nick'"  putloglev d * "ircstats: executing $sql"  set result [mysqlexec $db_handle $sql]  if {$result != 1} {    putlog "SQL - Error"  } else {     set id [mysqlinsertid $db_handle]     puthelp "PRIVMSG $channel :User Offline \002$nick\002 removed"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7928">WazzaUK</a> — Sun Sep 10, 2006 5:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
