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

	<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-08-10T10:03:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[keeper2]]></name></author>
		<updated>2006-08-10T10:03:38-04:00</updated>

		<published>2006-08-10T10:03:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65351#p65351</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65351#p65351"/>
		<title type="html"><![CDATA[a list problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65351#p65351"><![CDATA[
yes I worked it out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> was not so difficult as I think before your code help to find the way.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7984">keeper2</a> — Thu Aug 10, 2006 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-10T09:23:35-04:00</updated>

		<published>2006-08-10T09:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65350#p65350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65350#p65350"/>
		<title type="html"><![CDATA[a list problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65350#p65350"><![CDATA[
Have a look at the list commands in tcl: list, lappend, lsearch, lreplace<br><br>Roughly tho, something like this (not complete code):<div class="codebox"><p>Code: </p><pre><code>#add:proc addlist {what} { global mylist if {[lsearch $mylist $what] == -1} {  lappend mylist $what }}#delete:proc dellist {what} { global mylist set i [lsearch $mylist $what] set mylist [lreplace $mylist $i $i]}#Get "proper" layout, separate with ; instead...proc getproper {} { global mylist return [join $mylist ";"]}</code></pre></div>Not complete code, but should give you a decent example on how to use those commands<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Aug 10, 2006 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[keeper2]]></name></author>
		<updated>2006-08-10T08:37:18-04:00</updated>

		<published>2006-08-10T08:37:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65348#p65348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65348#p65348"/>
		<title type="html"><![CDATA[a list problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65348#p65348"><![CDATA[
Can somebody help me to do the following.<br><br>On a command lets say !add the user can add a value to a list.<br><br>Lets say the user type:<br>!add test<br>!add test2<br><br>Then the list should contains test;test2 seperated by a ;<br><br>If the user type again<br>!add test2<br>it should not be added to the list saying its already in.<br><br>If the user types<br>!del test<br><br>the value test should be deleted in the list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7984">keeper2</a> — Thu Aug 10, 2006 8:37 am</p><hr />
]]></content>
	</entry>
	</feed>
