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

	<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-12-11T00:12:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-12-09T16:50:25-04:00</updated>

		<published>2005-12-09T16:50:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58124#p58124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58124#p58124"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58124#p58124"><![CDATA[
thats not what he is looking for.<br><br>thats how far we got yesterday:<div class="codebox"><p>Code: </p><pre><code>Dez 09 04:58:26 EvilManset refresh [lsearch [array get ::team] $nick]Dez 09 04:58:28 EvilMan  set a [array get ::team]Dez 09 04:58:28 EvilMan  set remove [lsearch -all -inline -glob [lindex $a $refresh] *$nick*]Dez 09 04:58:28 EvilMan  set ::team([lindex $a [expr {$refresh - 1}]) [lreplace [lindex $a $refresh] $remove $remove]]Dez 09 05:00:38 De_Kusdont use -all and -inline ^-^Dez 09 05:01:34 EvilMan Tcl error [partteam]: bad index "0)": must be integer or end?-integer?Dez 09 05:02:46 De_Kushave you a close brake behind the lsearch  statement? :PDez 09 05:03:25 EvilManset remove [lsearch -glob [lindex $a $refresh] *$nick*]Dez 09 05:04:08 De_Kuslook at the completet error, maybe you are missing something again :DDez 09 05:04:47 EvilManCurrently: bad index "0)": must be integer or end?-integer?Dez 09 05:04:47 EvilManCurrently:     while executingDez 09 05:04:47 EvilManCurrently: "lindex $a [expr {$refresh - 1}]) [lreplace [lindex $a $refresh] $remove $remove]"Dez 09 05:04:47 EvilManCurrently:     (procedure "partteam" line 9)Dez 09 05:04:47 EvilManCurrently:     invoked from withinDez 09 05:04:48 EvilManCurrently: "partteam $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Dec 09, 2005 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-12-09T16:06:14-04:00</updated>

		<published>2005-12-09T16:06:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58121#p58121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58121#p58121"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58121#p58121"><![CDATA[
try <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/array.htm#M15" class="postlink"> array unset</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Dec 09, 2005 4:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bsdkid]]></name></author>
		<updated>2005-12-08T15:12:54-04:00</updated>

		<published>2005-12-08T15:12:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58081#p58081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58081#p58081"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58081#p58081"><![CDATA[
hey man, how do i remove nick in team array?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6919">bsdkid</a> — Thu Dec 08, 2005 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-12-07T22:57:30-04:00</updated>

		<published>2005-12-07T22:57:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58067#p58067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58067#p58067"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58067#p58067"><![CDATA[
i dont exactly know if it will work on teams with more than 1 nick. I dont have the time to check exactly how array get will look like. you could use -glob and *$n* instead than, but that might lead into wrong matchs again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. making it absolutely misstake proof you would probably need to lsearch the sublist in a foreach loop <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Dec 07, 2005 10:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bsdkid]]></name></author>
		<updated>2005-12-07T22:28:45-04:00</updated>

		<published>2005-12-07T22:28:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58066#p58066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58066#p58066"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58066#p58066"><![CDATA[
Thank you De Kus!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6919">bsdkid</a> — Wed Dec 07, 2005 10:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-12-08T00:03:55-04:00</updated>

		<published>2005-12-07T19:53:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58061#p58061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58061#p58061"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58061#p58061"><![CDATA[
I'm fascinated as to how one who is apparently ignorant of Tcl could determine there was even a "memory leak". <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Dec 07, 2005 7:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-12-07T15:01:08-04:00</updated>

		<published>2005-12-07T15:01:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58046#p58046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58046#p58046"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58046#p58046"><![CDATA[
I don't see anything that should cause a memory leak.<br>for only 1 team per nick, you should do a lsearch for the nick in the array like:<br>lsearch -exact [array get ::team] $n<br><br>PS: reading the rest of the srcipt and the TCL manual is everything you need to know to insert that code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Dec 07, 2005 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bsdkid]]></name></author>
		<updated>2005-12-11T00:12:29-04:00</updated>

		<published>2005-12-07T13:18:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58043#p58043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58043#p58043"/>
		<title type="html"><![CDATA[memory leak]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58043#p58043"><![CDATA[
problem solved. thanks guys!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6919">bsdkid</a> — Wed Dec 07, 2005 1:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
