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

	<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-04-16T03:20:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-16T03:20:54-04:00</updated>

		<published>2005-04-16T03:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48154#p48154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48154#p48154"/>
		<title type="html"><![CDATA[defining $var for users to put in]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48154#p48154"><![CDATA[
you are searching for something like<div class="codebox"><p>Code: </p><pre><code>set text [split $text]set user [lindex $text 0]set msg [join [lrange $text 1 end]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Apr 16, 2005 3:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SIYB]]></name></author>
		<updated>2005-04-15T12:29:43-04:00</updated>

		<published>2005-04-15T12:29:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48142#p48142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48142#p48142"/>
		<title type="html"><![CDATA[defining $var for users to put in]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48142#p48142"><![CDATA[
i am working on my first tcl script, basically another "notes" script(pseudobnc). the scripts worked alright when i only had one mailbox runnuing. i now added a command so that anyone can create a mailbox with password. for each user, a seperate msg file is created. all passwords and usernames are stored in one file.  that also works with no probs.<br><br>i now want to add a command so that people can sent msgs to specified users.<br><br>bind pub - ${pbchar}${pbstorecommand} storetext<br><br>how do i create a variable which users have to define after the storecommand? something like:<br><br>($user = user the msg should go to)<br>($msg = message)<br><br>.pbstore &lt;$user&gt; &lt;$msg&gt;<br><br>(i tried out some stuff with lindex, but couldn't get it work...)<br><br>i also want to use the $user var, to define the file the message is stored in...<br>set addmsg [open $pbsource$user a+]<br><br><br>Sorry if that question is answered elsewhere. there where too many matches when i searched for tcl ver variable etc...i looked through loads of scripts to get an idea how this might work...plz help me<br><br><br>siyb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5812">SIYB</a> — Fri Apr 15, 2005 12:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
