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

	<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>2002-12-18T18:51:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-18T18:51:44-04:00</updated>

		<published>2002-12-18T18:51:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14405#p14405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14405#p14405"/>
		<title type="html"><![CDATA[Tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14405#p14405"><![CDATA[
Somthign I notced while looking over it.<br><br>There is a second command called "get_number_of".<br><br>The error may be in there.<br><br>Allthough the error messages says it is in the find proc, this is because fo the way eggdrop reports the last Tcl command it executed (while in that command, Tcl will do the rest of the work).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 18, 2002 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2002-12-18T14:06:08-04:00</updated>

		<published>2002-12-18T14:06:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14393#p14393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14393#p14393"/>
		<title type="html"><![CDATA[Tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14393#p14393"><![CDATA[
hmmm the same problem<br><br>Tcl error [find]: list element in braces followed by "" instead of space<br><br>maybe that will help if  i split serverlist  on 3 part <strong class="text-strong">qstatserverlist.lst</strong> ?<br><br><br>ex<br><div class="codebox"><p>Code: </p><pre><code>proc exec_players {} {     return [exec ./qstat -sort g -default rwm -Ts server.qstat -Tp players.qstat -f 01qstatserverlist.lst/02qstatserverlist.lst/03qstatserverlist.lst -P] }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Wed Dec 18, 2002 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-18T11:56:05-04:00</updated>

		<published>2002-12-18T11:56:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14389#p14389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14389#p14389"/>
		<title type="html"><![CDATA[Tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14389#p14389"><![CDATA[
Seems the script plainly doesn;t care for strings and lists.<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !find find proc exec_players {} {     return [exec ./qstat -sort g -default rwm -Ts server.qstat -Tp players.qstat -f qstatserverlist.lst -P] } proc find {nick host hand chan arg} {     if {[llength [split $arg]] &lt; 1} then {    putquick "NOTICE $nick : You might wanna put in a search word to limit the list a bit"    return     }     putquick "NOTICE $nick :4Starting Search For 9 [lindex [split $arg] 0]  4Please Patience"     set stat [exec_players]     set stat_arr [split $stat "\n"]     set i 0     set str $stat_arr     set found 0     #    set str [lsort $stat_arr]     for {set i 0} {$i &lt; [llength $str]} {incr i} {    set j [expr $i + 1]    # Loop through all the players and save them into a list    while {[string range [lindex $str $j] 0 6] == "Player:"} {        set player [string trimleft [lindex $str $j] "Player:"]        set playername [lindex [split $player " "] 2]        set server [join [lindex [split [lindex $str $i] ""] 1] " "]        if {[string first [string tolower $arg] [string tolower $playername]] != -1} then {       incr found       putquick "NOTICE $nick :$playername is on $server "        }        incr j    }    # Make sure we don't check through the players again    set i [expr $j - 1]     }     set info_str [get_number_of $found "player"]     putquick "NOTICE $nick :$info_str"     return 0 }</code></pre></div>This may work, but I didn't look properly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 18, 2002 11:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2002-12-18T09:27:17-04:00</updated>

		<published>2002-12-18T09:27:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14386#p14386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14386#p14386"/>
		<title type="html"><![CDATA[Tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14386#p14386"><![CDATA[
need some help to fix this problem<br><br><strong class="text-strong">Tcl error [find]: list element in braces followed by "" instead of space</strong><br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !find findproc exec_players {} {    return [exec ./qstat -sort g -default rwm -Ts server.qstat -Tp players.qstat -f qstatserverlist.lst -P]}proc find {nick host hand chan arg} {    if {[llength $arg] &lt; 1} then {putquick "NOTICE $nick : You might wanna put in a search word to limit the list a bit"return    }    putquick "NOTICE $nick :4Starting Search For 9 [lindex $arg 0]  4Please Patience"    set stat [exec_players]    set stat_arr [split $stat "\n"]    set i 0    set str $stat_arr    set found 0    #    set str [lsort $stat_arr]    for {set i 0} {$i &lt; [llength $str]} {incr i} {set j [expr $i + 1]# Loop through all the players and save them into a listwhile {[string range [lindex $str $j] 0 6] == "Player:"} {    set player [string trimleft [lindex $str $j] "Player:"]    set playername [lindex [split $player " "] 2]    set server [join [lindex [split [lindex $str $i] ""] 1] " "]    if {[string first [string tolower $arg] [string tolower $playername]] != -1} then {incr foundputquick "NOTICE $nick :$playername is on $server "    }    incr j}# Make sure we don't check through the players againset i [expr $j - 1]    }    set info_str [get_number_of $found "player"]    putquick "NOTICE $nick :$info_str"    return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Wed Dec 18, 2002 9:27 am</p><hr />
]]></content>
	</entry>
	</feed>
