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

	<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>2003-12-11T14:57:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-11T14:57:30-04:00</updated>

		<published>2003-12-11T14:57:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31340#p31340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31340#p31340"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31340#p31340"><![CDATA[
Thanx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I finally got it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 11, 2003 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-11T13:22:30-04:00</updated>

		<published>2003-12-11T13:22:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31334#p31334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31334#p31334"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31334#p31334"><![CDATA[
something like this..<div class="codebox"><p>Code: </p><pre><code>set wordlist "foo moo bar"set word "moo"set index [lsearch -exact $wordlist $word] set result [lreplace $wordlist $index $index]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Dec 11, 2003 1:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-11T11:37:01-04:00</updated>

		<published>2003-12-11T11:37:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31326#p31326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31326#p31326"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31326#p31326"><![CDATA[
Can you please give an example ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 11, 2003 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-11T06:32:15-04:00</updated>

		<published>2003-12-11T06:32:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31306#p31306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31306#p31306"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31306#p31306"><![CDATA[
lreplace doesn't change variables. It takes a list as input and gives a list as output. To have the value stored you must do it yourself. If you want to remove an element, don't specify a replacement value ("" will replace the range with an empty element)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Dec 11, 2003 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-11T04:49:06-04:00</updated>

		<published>2003-12-11T04:49:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31301#p31301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31301#p31301"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31301#p31301"><![CDATA[
I tried it before, but I couldn't figure it out.<blockquote class="uncited"><div>« Opposing » .tcl set someo "a b c d e"<br>« bot » Tcl: a b c d e<br>« Opposing » .tcl lreplace $someo [lsearch $someo b] [lsearch $someo b] ""<br>« bot » Tcl: a {} c d e<br>« Opposing » .tcl set someo<br>« bot » Tcl: a b c d e</div></blockquote>as you see the element <strong class="text-strong">b</strong> is still in the someo variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 11, 2003 4:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-12-10T22:57:05-04:00</updated>

		<published>2003-12-10T22:57:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31292#p31292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31292#p31292"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31292#p31292"><![CDATA[
check the manual page entries for <strong class="text-strong">lreplace</strong> and <strong class="text-strong">lsearch</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Dec 10, 2003 10:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-10T20:31:14-04:00</updated>

		<published>2003-12-10T20:31:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31289#p31289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31289#p31289"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31289#p31289"><![CDATA[
I mean how to remove an element from a variable, like lappend will add an element but what's the command to remove one ?<br><br>for example, I would have something like:<div class="codebox"><p>Code: </p><pre><code>lappend var($chan) "$nick"utimer 3 [list rem:nick $nick $chan] ;#which will remove $nick from var($chan)</code></pre></div>but what would the proc rem:nick be like ?<br><blockquote class="uncited"><div>PS: check out my post count  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title="Evil or Very Mad"> </div></blockquote>lol you're the devil 666 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 10, 2003 8:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-10T19:43:36-04:00</updated>

		<published>2003-12-10T19:43:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31288#p31288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31288#p31288"/>
		<title type="html"><![CDATA[Re: Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31288#p31288"><![CDATA[
<blockquote class="uncited"><div>I'm using <strong class="text-strong">lappend</strong> to add nicks to a variable when nick joins, what I want to do is a timer which calls a proc after few seconds and removes this nick from the variable, but I couldn't find out a way to do that. Does anybody have any ideas ?</div></blockquote>Does each person joining have a unique delay before removal? If not: there's no need to keep track of the order/search - just make the timer remove the first element in the list as it will always be the oldest one.<br><br>PS: check out my post count <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title="Evil or Very Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 10, 2003 7:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-10T19:22:10-04:00</updated>

		<published>2003-12-10T19:22:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31287#p31287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31287#p31287"/>
		<title type="html"><![CDATA[Removing elements after lappend]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31287#p31287"><![CDATA[
I'm using <strong class="text-strong">lappend</strong> to add nicks to a variable when nick joins, what I want to do is a timer which calls a proc after few seconds and removes this nick from the variable, but I couldn't find out a way to do that. Does anybody have any ideas ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 10, 2003 7:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
