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

	<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-09-01T12:48:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-09-01T12:48:15-04:00</updated>

		<published>2006-09-01T12:48:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66045#p66045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66045#p66045"/>
		<title type="html"><![CDATA[!map]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66045#p66045"><![CDATA[
Then you've most likely got a pair of [] to many<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Sep 01, 2006 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kuukkeli]]></name></author>
		<updated>2006-09-01T12:45:56-04:00</updated>

		<published>2006-09-01T12:45:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66044#p66044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66044#p66044"/>
		<title type="html"><![CDATA[!map]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66044#p66044"><![CDATA[
Now it say  Tcl error [pub_kartta]: invalid command name "lol - <a href="http://asd.com/lol.asd" class="postlink">http://asd.com/lol.asd</a>". :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7679">Kuukkeli</a> — Fri Sep 01, 2006 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-09-01T12:08:57-04:00</updated>

		<published>2006-09-01T12:08:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66042#p66042</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66042#p66042"/>
		<title type="html"><![CDATA[!map]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66042#p66042"><![CDATA[
Simply, use lists and strings properly. Specially, when printing the contents of allEntrys, convert it to a string ({} are used to set the boundaries for each list-item).<br>Something like:<div class="codebox"><p>Code: </p><pre><code>join $allEntrys ", "</code></pre></div>should do the trick...<br><br>Also, don't use "args" as a parameter name when building procs, as this one is interpreted in a special fashion (allows dynamic number of arguments to be supplied to a process, each argument will be a list-item in "args"). Pub-binds will call the associated function with a fixed number of arguments, so there's no need for it here.. And frankly, your mangling of args in the code really does'nt make much sense either.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Sep 01, 2006 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kuukkeli]]></name></author>
		<updated>2006-09-01T11:01:33-04:00</updated>

		<published>2006-09-01T11:01:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66041#p66041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66041#p66041"/>
		<title type="html"><![CDATA[!map]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66041#p66041"><![CDATA[
Hi, this script finds map @ kartta.dat file.<div class="codebox"><p>Code: </p><pre><code>bind pub - !kartta pub_karttaproc pub_kartta { nick uhost hand chan args } {global kartta_dbset kartta_db "data/kartta.dat"   set args [split [lindex $args 0] " "]    if {$args == ""} { puthelp "PRIVMSG $chan :$nick !kartta &lt;hakusana&gt; ohjeet: hakusanan tulee olla kolme merkkiä pitkä tai pitempi, eikä siinä saa käyttää$return}    if {$args == "kz"} { puthelp "PRIVMSG $chan :$nick !kartta &lt;hakusana&gt; ohjeet: hakusanan tulee olla kolme merkkiä pitkä tai pitempi, eikä siinä saa käytt$return}    set explain [string tolower [lindex $args 0]] set chan [string tolower $chan] set init_t [clock clicks -milliseconds] set fp [open $kartta_db r]set matches ""set allEntrys "" while {![eof $fp]} {  gets $fp curEntryif {[info exists curEntry]&amp;&amp;$curEntry!=""} {   set curEntry [split [string tolower $curEntry] " "] set thisEntry [join [lrange $curEntry 0 end] " "]   if { [string match -nocase "*${args}*" $thisEntry] } {    if { [lsearch $allEntrys [lindex curEntry 1]]==-1 } {lappend allEntrys [lrange $thisEntry 0 end] set allEntrys [lsort -unique $allEntrys]} } } }set init_t [expr double(([clock clicks -milliseconds] - $init_t))/1000] if {$allEntrys==""} { puthelp "PRIVMSG $chan :Karttaa ei löytynyt." } else {  if {[llength $allEntrys]&gt;5} {puthelp "PRIVMSG $chan :Liian monta karttaa löytyi, kokeille muulla hakusanalla."  } else {set jee1 "[lrange $allEntrys 0 1]"puthelp "PRIVMSG $chan :Löytyi [llength $allEntrys] kartta(a). $allEntrys"  }}}</code></pre></div>It works, but answer is [@Romuloota] Löytyi 1 kartta(a). {lol - <a href="http://asd.com/lol.asd" class="postlink">http://asd.com/lol.asd</a>}. How i delete these {}. Sry my bad english, i hope you understand.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7679">Kuukkeli</a> — Fri Sep 01, 2006 11:01 am</p><hr />
]]></content>
	</entry>
	</feed>
