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

	<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-09-12T14:18:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-12T14:18:46-04:00</updated>

		<published>2002-09-12T14:18:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10821#p10821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10821#p10821"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10821#p10821"><![CDATA[
I didn't was lazy, I just don't have a pc at home any more. Right now I'm at a friend and I was replyng the topics in a very huge hurry. 'm sorry for the mistake. I've realised my mistakle. Thanks and sorry again.[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 12, 2002 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-12T14:13:44-04:00</updated>

		<published>2002-09-12T14:13:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10820#p10820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10820#p10820"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10820#p10820"><![CDATA[
Another satisfied customer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Sep 12, 2002 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-12T14:08:49-04:00</updated>

		<published>2002-09-12T14:08:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10819#p10819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10819#p10819"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10819#p10819"><![CDATA[
Oups, sorry for my mistake guys. I have resolved the problem with the quit. Many thanks for the effort to point me my mistake with the lreplace thing. Sorry again..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 12, 2002 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-12T13:48:49-04:00</updated>

		<published>2002-09-12T13:48:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10817#p10817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10817#p10817"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10817#p10817"><![CDATA[
Caesar,<br><br>Learn to test things yourself buddy. The whole point of my last post was to show you how easy it is to test things with tclsh. You start tclsh, make some test data, and then experiment with all the lreplace stuff you want. You can test 10 different statements in about 2 minutes.<br><br>Right now you are just being 100% lazy, asking other people to test  a SINGLE tcl statement that has nothing to do with eggdrop, rather than doing it yourself. It is a monumental waste of time. It would take far less time to test it yourself than coming here and saying "you didn't test THIS statement" or "well does THIS work then?"<br><br>Now, on to the details.<br><blockquote class="uncited"><div>I've said to put lreplace $voicelist "$index $index" without the "]". I've sow in a tcl an lappend that is looking like: lappend something "$foo $bar". Isnt' the same thing?</div></blockquote>You have got to be kidding if you think lreplace and lappend are the same thing. Look in the Tcl manual for the differences, but the short answer is "no."<br><br>Next...<br><blockquote class="uncited"><div>Humm.. I've said to test only the lreplace $list "$index $index" , without the set next(list) part. I'm sorry if I haven't made myself understood.</div></blockquote>Dude, do you even read other posts? I already tested that with set voicelist [lreplace $voicelist "$index $index"]. The set makes no difference, we're not testing that command, and it's not causing an error. It c learly showed that the lreplace command was causing an error (wrong # args) and that doesn't change if the set is there or not.<br><br>Finally...<br><blockquote class="uncited"><div>Ok. Thanks for the tips. I'll do this ASP and reply with the results, if any.</div></blockquote>Did you ever add the debugging statements? That is what started this whole thread after all.<br><br>So here's my new advice for you. Get some self confidence man! You don't need us to test simple tcl statements for you. You Can Do It! First, for questions of syntax (like lreplace, lappend), go to the Tcl manual. Second, for "does this work?" try it yourself in tclsh. It's very easy. You can do it all night long!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Sep 12, 2002 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-12T13:28:26-04:00</updated>

		<published>2002-09-12T13:28:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10814#p10814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10814#p10814"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10814#p10814"><![CDATA[
Humm.. I've said to test only the <strong class="text-strong">lreplace next(list) "$index $index"</strong> , without the set next(list) part. I'm sorry if I haven't made myself understood and if I'm wasting your precious time.<br><br>PS: Don't take the last sentence as a sign of rudeness.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 12, 2002 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-12T11:00:08-04:00</updated>

		<published>2002-09-12T11:00:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10805#p10805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10805#p10805"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10805#p10805"><![CDATA[
It's people like you that even fail to look at a post above, instead of commenting what the first thing ou see that gets to me.<br><br>OK - take the line.<br><div class="codebox"><p>Code: </p><pre><code>set list [lreplace $list "$index $index"]</code></pre></div>You have asked for this to be done without the "]"<br><br>OK - you do that<br><div class="codebox"><p>Code: </p><pre><code>set list [lreplace $list "$index $index"</code></pre></div>Woops, this produces and error that the "]" is missing.<br><br>Lets remove the "["<br><div class="codebox"><p>Code: </p><pre><code>set list lreplace $list "$index $index"</code></pre></div>Band, another error stating the set command has too many arguments.<br><br>What exactly is your problem, apart from trying to waste our time.<br><br>Maybe if you spoke in whole sentaces it would help..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Sep 12, 2002 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-12T07:54:01-04:00</updated>

		<published>2002-09-12T07:54:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10799#p10799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10799#p10799"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10799#p10799"><![CDATA[
I've said to put lreplace $voicelist "$index $index" without the "]". I've sow in a tcl an lappend that is looking like: lappend something "$foo $bar". Isnt' the same thing?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 12, 2002 7:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-11T15:04:53-04:00</updated>

		<published>2002-09-11T15:04:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10786#p10786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10786#p10786"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10786#p10786"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>1:% lreplace $voicelist "$index $index"] extra characters after close-quote 2:% set voicelist [lreplace $voicelist "$index $index"] wrong # args: should be "lreplace list first last ?element element ...?"</code></pre></div>What you ask for is the same as number 2, which produces the error shown in number 2.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 11, 2002 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-11T14:18:53-04:00</updated>

		<published>2002-09-11T14:18:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10785#p10785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10785#p10785"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10785#p10785"><![CDATA[
I said lreplace next(list) "$index $index", without the "]" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> You have put in your test: % lreplace $voicelist "$index $index"] , modify and test again please. I don't have my pc home and I can't test right now nothing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> Catch you later. Thanks for replys.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 11, 2002 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-10T13:32:04-04:00</updated>

		<published>2002-09-10T13:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10736#p10736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10736#p10736"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10736#p10736"><![CDATA[
The last 2 are both invalid. The first 1 is right. By the way, for future reference, you can easily test small statements likes these yourself with tclsh:<br><div class="codebox"><p>Code: </p><pre><code>% set voicelist [list a b c d e f g]a b c d e f g% set index 22% set voicelist [lreplace $voicelist $index $index ]a b d e f g% lreplace $voicelist "$index $index"]extra characters after close-quote% set voicelist [lreplace $voicelist "$index $index"]wrong # args: should be "lreplace list first last ?element element ...?"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Sep 10, 2002 1:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-10T11:38:51-04:00</updated>

		<published>2002-09-10T11:38:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10730#p10730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10730#p10730"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10730#p10730"><![CDATA[
Is there a diference betwin set voicelist [lreplace $voicelist $index $index ] and lreplace $voicelist "$index $index"] or set voicelist [lreplace $voicelist "$index $index"]? The part and the sign where binded in the same proc, when a user was parting the channel he/she was removed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Sep 10, 2002 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-09T11:50:45-04:00</updated>

		<published>2002-09-09T11:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10695#p10695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10695#p10695"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10695#p10695"><![CDATA[
Ok. Thanks for the tips. I'll do this ASP and reply with the results, if any.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Sep 09, 2002 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-08T10:59:43-04:00</updated>

		<published>2002-09-08T10:59:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10654#p10654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10654#p10654"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10654#p10654"><![CDATA[
Here is your original problem:<br><blockquote class="uncited"><div>Hi. This is a smal part of a proc from where I can't find where is the error. It seems that he dosen't remove $nick from the list and I can't see why is doing so. Can someone please point me the mistake? Thanks. </div></blockquote>If $nick isn't being removed from the list, there are only a few possibilities:<br><br>1. The proc isn't even being called to remove that nick<br>2. It is being called, but removing it incorrectly<br>3. The nick is added more than once<br><br>Those are the only 3 possibilities, right? So first, add debugging statements to see which one of them it is. The first one is easy to find out, use putlog at the top of the proc to say "Hello I am being called to remove $nick". The second one is also easy, just use putlog to display the list at the top and then at the bottom, and you can verify that the nick is being removed. The third one is easy as well, add putlogs to wherever you add nicks to the list, saying "Hello I am adding $nick to the list".<br><br>This is common debugging strategy: find all places where the error might be occurring, and inspect the data at those places.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Sep 08, 2002 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-08T07:02:19-04:00</updated>

		<published>2002-09-08T07:02:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10646#p10646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10646#p10646"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10646#p10646"><![CDATA[
At the quit and splt procs?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 08, 2002 7:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-07T20:33:47-04:00</updated>

		<published>2002-09-07T20:33:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10634#p10634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10634#p10634"/>
		<title type="html"><![CDATA[Where I did wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10634#p10634"><![CDATA[
Add debugging statements.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Sep 07, 2002 8:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
