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

	<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>2010-08-31T18:10:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-08-31T18:10:06-04:00</updated>

		<published>2010-08-31T18:10:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94175#p94175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94175#p94175"/>
		<title type="html"><![CDATA[[SOLVED] Retrieving replies from mysql gives unexpected ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94175#p94175"><![CDATA[
Well, my poor linux system had a fatal filesystem/harddrive crash some week ago.. Thus I havn't gotten 'round starting up my idling client yet...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 31, 2010 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DjSlash]]></name></author>
		<updated>2010-08-31T17:59:45-04:00</updated>

		<published>2010-08-31T17:59:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94174#p94174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94174#p94174"/>
		<title type="html"><![CDATA[[SOLVED] Retrieving replies from mysql gives unexpected ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94174#p94174"><![CDATA[
ahhh, ofcourse. Thanks NML!<br><br>PS, your signature isn't correct <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10782">DjSlash</a> — Tue Aug 31, 2010 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-08-31T17:53:48-04:00</updated>

		<published>2010-08-31T17:53:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94173#p94173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94173#p94173"/>
		<title type="html"><![CDATA[[SOLVED] Retrieving replies from mysql gives unexpected ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94173#p94173"><![CDATA[
You'll need to use the <strong class="text-strong">subst</strong> command if you'd like the escape-sequences to be substituted properly. Most likely, you'll want to use the -nocommands -novariables options to prevent unintended injections.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 31, 2010 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DjSlash]]></name></author>
		<updated>2010-08-31T18:00:37-04:00</updated>

		<published>2010-08-31T17:43:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94172#p94172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94172#p94172"/>
		<title type="html"><![CDATA[[SOLVED] Retrieving replies from mysql gives unexpected ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94172#p94172"><![CDATA[
Hi all,<br><br>I'm playing with an idea I have for a while and I'm using the mysql module from BarkerJr for it. I have made a script that makes bindings according to the stuff in the database. Since it is just an experiment, I didn't put much tought to it. However, what's been bugging me for a couple of hours now is that I don't get the expected result from what I have right now.<br><br>This is the code:<div class="codebox"><p>Code: </p><pre><code>proc tb:respond { nick uhost hand chan arg binding} {        global talkbot        mysql_connect $talkbot(db_name) $talkbot(db_host) $talkbot(db_uname) $talkbot(db_pass)        set respond_query "SELECT reply FROM talkbot WHERE binding = '$binding' ORDER BY RAND() LIMIT 1"        set result [mysql_query $respond_query]        if {[mysql_affected_rows] &lt; 1} {                putlog "TalkBot MySQL error: $result ([mysql_errno])"                return 0        } else {                set reply [lindex [lindex $result 0] 0]                putserv "privmsg $chan :$reply"        }}</code></pre></div>This is what I have in the database:<div class="codebox"><p>Code: </p><pre><code>mysql&gt; select reply from talkbot where binding = 'test';+---------------------+| reply               |+---------------------+| \001ACTION test\001 |+---------------------+1 row in set (0.00 sec)</code></pre></div>This should make the bot do an action, however this is what I get:<div class="codebox"><p>Code: </p><pre><code>23:41 &lt;@DjSlash&gt; !test23:41 &lt;@StatsBot&gt; \001ACTION test\001</code></pre></div>I've been trying all kinds of things, but the result remains the same. Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10782">DjSlash</a> — Tue Aug 31, 2010 5:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
