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

	<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>2004-04-28T13:58:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-28T13:58:16-04:00</updated>

		<published>2004-04-28T13:58:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35922#p35922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35922#p35922"/>
		<title type="html"><![CDATA[$fs trouble, I'm stuck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35922#p35922"><![CDATA[
Damn, stupid off me. <br><br>Thanx for the reply <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Wed Apr 28, 2004 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-28T13:50:47-04:00</updated>

		<published>2004-04-28T13:50:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35920#p35920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35920#p35920"/>
		<title type="html"><![CDATA[$fs trouble, I'm stuck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35920#p35920"><![CDATA[
'$' is used when you want the value of a variable. NOT when you talk about the variable itself. (set variableName, NOT set $variableName (unless that variable contains the name of the variable you're setting ;P))<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Apr 28, 2004 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-28T13:43:23-04:00</updated>

		<published>2004-04-28T13:43:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35919#p35919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35919#p35919"/>
		<title type="html"><![CDATA[$fs trouble, I'm stuck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35919#p35919"><![CDATA[
Heya, I'm trying to do a very simple thing, just getting the bot to write something to a file (a info script).  <br>But when I'm doing the !lean command, the bot just says "TCL Error: can't read $fs, no such variabel"   Anyone got a clue here? i can't find anything wrong hehe <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> and yes, the DB file has been created.<br><br>The proc looks like this:<br><br>proc egginfo:add {nick uh handle chan text} {<br>global egginfo<br>if {[egginfo:checkaccess $handle flags] == 2} {<br>putserv "$egginfo(changes) $nick :Sorry mate, You don't hace access"<br>return 0<br>}<br>set word [string tolower [lindex $text 0]]<br>set def [lrange $text 1 end]<br>if {$def == ""} {<br>putserv "$egginfo(changes) $nick :Somethings wrong, Syntax: use $egginfo(add) &lt;word&gt; &lt;defenition&gt;"<br>return 0<br>}<br>set $fs [open $egginfo(file) a]<br>puts $fs "$word $def"<br>close $fs<br>putserv "$egginfo(changes) $nick :I have added $word to the database"<br>}<p>Statistics: Posted by Guest — Wed Apr 28, 2004 1:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
