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

	<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-10T13:32:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-09-10T13:32:13-04:00</updated>

		<published>2006-09-10T13:32:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66239#p66239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66239#p66239"/>
		<title type="html"><![CDATA[Trigger help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66239#p66239"><![CDATA[
Wouldn't it simply be a matter of duplicating your 'proc ircjoin' renaming it to like 'proc ircpart'  and using the PART and QUIT binds?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Sep 10, 2006 1:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ace-T]]></name></author>
		<updated>2006-09-10T09:29:48-04:00</updated>

		<published>2006-09-10T09:29:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66238#p66238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66238#p66238"/>
		<title type="html"><![CDATA[Trigger help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66238#p66238"><![CDATA[
hey guys looking for a script to trigger the bot into send a command to a mysql data base, i have come up with 1 that works when they join irc, it updates the data base but cant get it to work on part or quit...<br><br>here is the onjoin code, would some1 to be ble to adapt it to work on part<br><div class="codebox"><p>Code: </p><pre><code>load /xxxxxxxxxxx/mysqltcl/libmysqltcl2.30.sopackage require mysqltclset db_handle TOOK THIS BIT OUT# main stringsbind pub - !user ircjoin#setudef flag testingproc ircjoin { nick host handle channel text } {global db_handle quote_noflags  #  if {![channel get $channel testing]} {#    return 0#  }  #  if [matchattr $handle $quote_noflags] { return 0 }#  if {($handle == "") || ($handle == "*")} {#    set handle $nick#  }    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 "An error occurred with the sql :("  } else {         set id [mysqlinsertid $db_handle]     puthelp "PRIVMSG $channel :User Online \002$nick\002 added"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8148">Ace-T</a> — Sun Sep 10, 2006 9:29 am</p><hr />
]]></content>
	</entry>
	</feed>
