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

	<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>2005-01-02T12:07:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[puffi]]></name></author>
		<updated>2005-01-02T12:07:59-04:00</updated>

		<published>2005-01-02T12:07:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44853#p44853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44853#p44853"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44853#p44853"><![CDATA[
so is your sql problem solved then?<br><br>if not try     WHERE '[mysqlescape $somestr]'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4998">puffi</a> — Sun Jan 02, 2005 12:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2005-01-01T15:34:55-04:00</updated>

		<published>2005-01-01T15:34:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44826#p44826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44826#p44826"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44826#p44826"><![CDATA[
so, now everything works, i found the problem. thanks for the help and sorry for my stupidness <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=5846">prozzerg</a> — Sat Jan 01, 2005 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-01T14:49:39-04:00</updated>

		<published>2005-01-01T14:49:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44825#p44825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44825#p44825"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44825#p44825"><![CDATA[
set yourself as owner in bot's config, not on partyline<br><br>you must have the following:<div class="codebox"><p>Code: </p><pre><code>set owner prozzerg</code></pre></div>in bot's config file<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jan 01, 2005 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2005-01-01T14:39:30-04:00</updated>

		<published>2005-01-01T14:39:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44823#p44823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44823#p44823"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44823#p44823"><![CDATA[
i dont know whats wrong, but .set errorInfo does NOT work, no matter what i do.<br>this is what i get when i log in, it says that im the owner and so on.<div class="codebox"><p>Code: </p><pre><code>19:28 &lt;bot&gt; Connected to bot, running eggdrop v1.6.1519:28 &lt;bot&gt;      ____                __19:28 &lt;bot&gt;     / __/___ _ ___ _ ___/ /____ ___   ___19:28 &lt;bot&gt;    / _/ / _ `// _ `// _  // __// _ \ / _ \19:28 &lt;bot&gt;   /___/ \_, / \_, / \_,_//_/   \___// .__/19:28 &lt;bot&gt;        /___/ /___/                 /_/19:28 &lt;bot&gt;19:28 &lt;bot&gt; Hey Prozzerg!  My name is bot and I am running eggdrop v1.6.15, on Linux 2.4.25.19:28 &lt;bot&gt;19:28 &lt;bot&gt; Local time is now 19:2819:28 &lt;bot&gt; You are an owner of this bot. Only +n users can see this! For more info,19:28 &lt;bot&gt; see .help set motd. Please edit the motd file in your bot's 'text'19:28 &lt;bot&gt; directory.19:28 &lt;bot&gt; Use .help for basic help.19:28 &lt;bot&gt; Use .help &lt;command&gt; for help on a specific command.19:28 &lt;bot&gt; Use .help all to get a full command list.19:28 &lt;bot&gt; Use .help *somestring* to list any help texts containing "somestring".19:28 &lt;bot&gt;19:28 &lt;bot&gt; Have fun.19:28 &lt;bot&gt;19:28 &lt;bot&gt; Commands start with '.' (like '.quit' or '.help')19:28 &lt;bot&gt; Everything else goes out to the party line.19:28 &lt;bot&gt;19:28 &lt;bot&gt; You have no messages.19:28 &lt;bot&gt; *** Prozzerg joined the party line.19:29 &lt;bot&gt; [19:29] die2plz - search19:29 &lt;bot&gt; [19:29] Tcl error [pub:search]: expected integer but got "-Van"19:29 &lt;Prozzerg&gt; .set errorInfo19:29 &lt;bot&gt; What?  You need '.help'19:30 &lt;Prozzerg&gt; .set owner prozzerg19:30 &lt;bot&gt; What?  You need '.help'</code></pre></div>and when i cat the bots config file:<div class="codebox"><p>Code: </p><pre><code>prozzerg@tux:~/eggdrop$ cat eggdrop.conf | grep unbind#unbind dcc n tcl *dcc:tcl#unbind dcc n set *dcc:set# unbind dcc n simul *dcc:simul#unbind msg - hello *msg:hello# the bot and attempting to guess passwords. We now unbind this command by# unbind msg - ident *msg:ident# unbind msg - addhost *msg:addhost</code></pre></div>and all the unbinds are comment out, and there is no unbinds in any of my scripts<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Sat Jan 01, 2005 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-01T14:16:20-04:00</updated>

		<published>2005-01-01T14:16:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44822#p44822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44822#p44822"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44822#p44822"><![CDATA[
errorInfo has nothing to do with eggdrop itself, that's why it's not in the help files; it's a build-in Tcl variable containing the last error traceback<br><br>and you still have your unbinds somewhere, otherwise .set would work (you are the bot's owner, aren't you? make sure your bothandle is in <strong class="text-strong">set owner</strong>) - in your config or in your scripts - remove those, restart the bot and try to do what I suggested above<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jan 01, 2005 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2005-01-01T14:05:38-04:00</updated>

		<published>2005-01-01T14:05:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44819#p44819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44819#p44819"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44819#p44819"><![CDATA[
well, the unbinds where already taken away, so thats not the problem, i did a .help set, this is the output <div class="codebox"><p>Code: </p><pre><code> 19:01 &lt;Prozzerg&gt; .help set[19:01] #Prozzerg# help set ###  set &lt;variable&gt; [value]    Changes the values of config-file settings of the bot, or, if used without    a value parameter, shows the current value of a setting. Any config file    setting changed with this command will be reset when the config file is    reloaded. Here are the variables that can be modified with this command    (note that other modules can add variables):      botnet-nick     userfile        motd            paranoid-telnet-flood      my-ip           telnet-banner   admin           use-telnet-banner      temp-path       notify-newusers owner           my-hostname      nat-ip          dcc-sanitycheck network         whois-fields      username        version         firewall        telnet-flood      ignore-time     dcc-flood-thr   hourly-updates  connect-timeout      resolve-timeout dupwait-timeout require-p       keep-all-logs      open-telnets    stealth-telnets handlen         reserved-portrange      console         default-flags   log-time        max-logsize      quick-logs      logfile-suffix  quiet-save      sort-users      die-on-sighup   die-on-sigterm  remote-boots    max-dcc      max-logs        protect-telnet  ident-timeout   share-unlinks      allow-dk-cmds   userfile-perm   switch-logfiles-at</code></pre></div>As you can see, no errorInfo there, if not errorInfo is in some module, maybe a module i dont have loaded?<br><br>list of loaded modules:<div class="codebox"><p>Code: </p><pre><code> [19:05] #Prozzerg# modules Modules loaded:   Module: console (v1.1)   Module: notes (v2.1)   Module: irc (v1.3)   Module: ctcp (v1.0)   Module: server (v1.2)   Module: channels (v1.0)   Module: dns (v1.0)   Module: uptime (v1.2)   Module: encryption (v2.1)   Module: eggdrop (v106.15) End of modules list.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Sat Jan 01, 2005 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-01T13:36:32-04:00</updated>

		<published>2005-01-01T13:36:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44815#p44815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44815#p44815"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44815#p44815"><![CDATA[
enable .tcl and .set commands in your config - comment out the unbinds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jan 01, 2005 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2005-01-01T13:33:41-04:00</updated>

		<published>2005-01-01T13:33:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44814#p44814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44814#p44814"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44814#p44814"><![CDATA[
on !search Paul Van Duk<div class="codebox"><p>Code: </p><pre><code>[18:32] Tcl error [pub:search]: expected integer but got "-Van".set errorInfoWhat?  You need '.help'</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Sat Jan 01, 2005 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-01T13:30:05-04:00</updated>

		<published>2005-01-01T13:30:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44813#p44813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44813#p44813"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44813#p44813"><![CDATA[
when that error msg appears, type:<div class="codebox"><p>Code: </p><pre><code>.set errorInfo</code></pre></div> on bot's party line and paste the log here (using <div class="codebox"><p>Code: </p><pre><code> tag)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jan 01, 2005 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2005-01-01T09:49:00-04:00</updated>

		<published>2005-01-01T09:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44801#p44801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44801#p44801"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44801#p44801"><![CDATA[
Theres the code. and the error message is always with the second word, like this:<br> [03:54] Tcl error [pub:search]: expected integer but got "-secondword"<br><br>If i search only on one word everything works as it should.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Sat Jan 01, 2005 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2005-01-01T09:43:30-04:00</updated>

		<published>2005-01-01T09:43:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44800#p44800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44800#p44800"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44800#p44800"><![CDATA[
set mysql(host) "localhost" <br>set mysql(port) "3306" <br>set mysql(user) "user" <br>set mysql(pass) "pass" <br>set mysql(data) "infodb" <br>load /usr/lib/mysqltcl-2.50/libmysqltcl2.50.so<br>set mysql(conn) [mysqlconnect -host $mysql(host) -port $mysql(port) -user $mysql(user) -password $mysql(pass)]<br><br>proc pub:search {nick output handle chan string} {<br>global mysql<br>mysqluse $mysql(conn) $mysql(data)<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM `info` where `text` = '$string'" -list]<br>set words [split $query]<br>set writer [lindex $words 2]<br>set writerdate [lindex $words 3] <br>putserv "PRIVMSG $chan :That text was written by $writer on $writerdate"<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Sat Jan 01, 2005 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-31T23:37:11-04:00</updated>

		<published>2004-12-31T23:37:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44791#p44791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44791#p44791"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44791#p44791"><![CDATA[
paste the whole script, or at least the relevant parts<br><br>I have no idea how does your pub:search proc look like<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 31, 2004 11:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2004-12-31T23:26:35-04:00</updated>

		<published>2004-12-31T23:26:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44789#p44789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44789#p44789"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44789#p44789"><![CDATA[
i use this one:<br>"SELECT * FROM `info` where `text` = '$string'"<br>(full command is: mysqlsel $mysql(conn) "SELECT * FROM `info` where `text` = '$string'" -list )<br><br>i set string to "hello this is a test" i get this output:<br>[03:54] Tcl error [pub:search]: expected integer but got "-this"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Fri Dec 31, 2004 11:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-31T23:17:51-04:00</updated>

		<published>2004-12-31T23:17:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44788#p44788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44788#p44788"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44788#p44788"><![CDATA[
of course it's possible $string to have spaces<br><br>what question is wrong? what do you mean? explain and post results, error messages, whatever output you might have<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 31, 2004 11:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prozzerg]]></name></author>
		<updated>2004-12-31T23:09:19-04:00</updated>

		<published>2004-12-31T23:09:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44787#p44787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44787#p44787"/>
		<title type="html"><![CDATA[problem with mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44787#p44787"><![CDATA[
I have a problem with this select row when $string includes spaces, does someone know if there is possible to have spaces in this way?<br><br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM `info` where `text` = '$string'"  -list] <br><br>if i have it this way it works, but then the question is wrong:<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM `info` where `text` = '%$string%'"  -list] <br><br>and i dont want it this way;<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM `info` where `text` LIKE '%$string%'"  -list]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5846">prozzerg</a> — Fri Dec 31, 2004 11:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
