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

	<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-05-22T08:23:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Python]]></name></author>
		<updated>2006-05-22T08:23:33-04:00</updated>

		<published>2006-05-22T08:23:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63272#p63272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63272#p63272"/>
		<title type="html"><![CDATA[Remove {} brackets from Mysql output to chan [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63272#p63272"><![CDATA[
Problem solved thnx to Metroid..<br><br>Lock?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7784">Python</a> — Mon May 22, 2006 8:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-05-22T01:46:12-04:00</updated>

		<published>2006-05-22T01:46:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63266#p63266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63266#p63266"/>
		<title type="html"><![CDATA[Remove {} brackets from Mysql output to chan [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63266#p63266"><![CDATA[
Use <div class="codebox"><p>Code: </p><pre><code>join</code></pre></div> to turn the lists into strings and you should just lappend the information, there is no point in using linsert and whatnot. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>edit: Why you use that many queries is beyond me, you should limit your queries by requesting multiple pieces of information with 1 query instead of 1 query for each piece of information.<br><br>(I prefer mysqltcl anyway)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon May 22, 2006 1:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Python]]></name></author>
		<updated>2006-05-21T20:05:23-04:00</updated>

		<published>2006-05-21T20:05:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63251#p63251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63251#p63251"/>
		<title type="html"><![CDATA[Remove {} brackets from Mysql output to chan [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63251#p63251"><![CDATA[
Hi I'm making a script to fetch some data from my Mysql DB and putt it into a certain channel. <br><br>Im using eggdrop 1.6.17 with mysql.mod.<br><br>This is the script..<br><div class="codebox"><p>Code: </p><pre><code>proc sql_gpcs03 { nick uhost handle channel arg } {    global sql_channel     if { $sql_channel == $channel } {     mysql_connect database host user password       set servinf [list]       set servname [mysql_query "SELECT ServName FROM cv_server_details WHERE `SID` = 3"]       set servip [mysql_query "SELECT IP FROM cv_server_list WHERE `SID` = 3"]       set servport [mysql_query "SELECT PORT FROM cv_server_list WHERE `SID` = 3"]        set servmap [mysql_query "SELECT ServMap FROM cv_server_details WHERE `SID` = 3"]        set servclientscur [mysql_query "SELECT Clients_cur FROM cv_server_details WHERE `SID` = 3"]       set servclientsmax [mysql_query "SELECT Clients_max FROM cv_server_details WHERE `SID` = 3"]       set servinf [linsert $servinf end $servname $servip $servport $servmap $servclientscur $servclientsmax]       putserv "PRIVMSG $channel : $servinf"     mysql_close     }}</code></pre></div>And this is the output:<br><br>(01:50:58) (gP|Python) !gpcs03<br>(01:51:00) (@gP|Contagion) {{{ gP.CS.03 [NL] - aim_ak-colt2k3}} } {{137.224.240.17} } {{27035} } {{aim_ak_colt2k3} } {{5} } {{14} }<br><br>I dont want those stupid {} brackets!<br><br>Im sure there's a simple solution for this, but it can't seem to find one with the search (or in any FAQ).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7784">Python</a> — Sun May 21, 2006 8:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
