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

	<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-11-01T18:01:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-01T18:01:30-04:00</updated>

		<published>2005-11-01T18:01:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56964#p56964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56964#p56964"/>
		<title type="html"><![CDATA[Qstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56964#p56964"><![CDATA[
Try replacing<div class="codebox"><p>Code: </p><pre><code>append string $query</code></pre></div>with <div class="codebox"><p>Code: </p><pre><code>append string "$query "</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Nov 01, 2005 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[L0g1c]]></name></author>
		<updated>2005-11-01T16:58:08-04:00</updated>

		<published>2005-11-01T16:58:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56961#p56961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56961#p56961"/>
		<title type="html"><![CDATA[Qstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56961#p56961"><![CDATA[
Hi! I want to split the message in to serveral notices if the message is too big and it can't be displayed in one notice. The problem is that it deletes all the spaces (skip the beggining and look at the text below "set msg [split $line]")<div class="codebox"><p>Code: </p><pre><code>proc qstat:results {chan nick pf} {   while {[gets $pf line] &gt;= 0} {      if {[string match "DOWN*" $line]} {         putquick "NOTICE $nick :Connection refused while querying server."         break      } elseif {[string match "HOSTNOTFOUND*" $line]} {         putquick "NOTICE $nick :Host not found."         break      } elseif {[string match "TIMEOUT*" $line]} {         putquick "NOTICE $nick :Timeout while querying server."         break      }      set msg [split $line]      set string ""      foreach query $msg {         if {[string length $string] + [string length $query] &lt; 458} {            append string $query         } else {            putquick "NOTICE $nick :$string"            set string ""         }      }      if {$string != ""} {         putquick "NOTICE $nick :$string"      }   }}</code></pre></div>The result I get:<div class="codebox"><p>Code: </p><pre><code>[Server:TestServer¤IP:cs.gather.lt[212.122.68.248:27015]¤Players:18/19¤ Map:de_dust2¤Password:No¤NextMap:cs_estate¤TimeLeft:08:21¤Cheating-Death:4.21.0]</code></pre></div>Should be:<div class="codebox"><p>Code: </p><pre><code>[ Server: Test Server ¤ IP: cs.gather.lt [212.122.68.248:27015] ¤ Players: 18/19 ¤ Map : de_dust2 ¤ Password : No ¤ Next Map: cs_estate ¤ Time Left : 08:21 ¤ Cheating-Death: 4.21.0 ]</code></pre></div>Any ideas how to solve this ?<br><br>P.S.<br><br>There is one more problem:<div class="codebox"><p>Code: </p><pre><code>[22:52] -Bot- [Player:Nick-Frags:16][Player:[22:52] -Bot- -Frags:5]</code></pre></div>As you can see, the second player's name was ignored. I'd like to solve this problem too. Thanks for you help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6917">L0g1c</a> — Tue Nov 01, 2005 4:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
