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

	<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-11-17T15:42:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-11-17T15:42:20-04:00</updated>

		<published>2002-11-17T15:42:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13272#p13272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13272#p13272"/>
		<title type="html"><![CDATA[Odd little error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13272#p13272"><![CDATA[
set rulefile [open $rulepath r]<br>while {![eof $rulefile]} {<br><br>Thats the code i was basing it off, looks like it misread it completely <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>thanks as always ppslim<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sun Nov 17, 2002 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-17T14:28:19-04:00</updated>

		<published>2002-11-17T14:28:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13264#p13264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13264#p13264"/>
		<title type="html"><![CDATA[Odd little error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13264#p13264"><![CDATA[
Yes, you are correct, it does open the file.<br><br>However, it then remains that you are passing the wrong arguments to other functions.<br><br>Look at the "eof" command you have used.<br><br>You are passing it the file name, not the channel name (Tcl calls then channel names. This is due to the fact, it's a channel through which a Tcl script can talk to a file).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Nov 17, 2002 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-11-17T04:12:15-04:00</updated>

		<published>2002-11-17T04:12:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13252#p13252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13252#p13252"/>
		<title type="html"><![CDATA[Odd little error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13252#p13252"><![CDATA[
set stars(file) [open $stars(path) r]<br><br>i thou8ght that line loadfed it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sun Nov 17, 2002 4:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-16T20:49:26-04:00</updated>

		<published>2002-11-16T20:49:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13250#p13250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13250#p13250"/>
		<title type="html"><![CDATA[Odd little error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13250#p13250"><![CDATA[
Before you can use file functions like eof, gets, close, etc, you have to open the file. Use the 'open' command. It gives you a handle to the open file. Then you use that handle for the file functions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Nov 16, 2002 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-11-16T20:08:00-04:00</updated>

		<published>2002-11-16T20:08:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13249#p13249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13249#p13249"/>
		<title type="html"><![CDATA[Odd little error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13249#p13249"><![CDATA[
Hello<br><br>Well, i decided to use the looping and file picking up code i learnt, thanks to you guys whilst making my rules script, and use it to replace the hard coded variables in my url storage and favourites scripts. But...<br><blockquote class="uncited"><div>[00:04:46] &lt;Natsuki-Chan&gt; [00:04] Tcl error [pub:stars]: can not find channel named "text/stars.file"</div></blockquote>"text/stars.file" is equal to stars(path) in the script, so what is wrong? Is it just my typoing syntax again?<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !stars pub:starsproc pub:stars {nick host hand chan text} {global runchan starsif {$chan == $runchan} {if {[file exists $stars(path)]} {putlog "File Exists, loading"set stars(file) [open $stars(path) r]while {![eof $stars(path)]} {catch {set stars(text) [gets $stars(file)]}puthelp "Notice $nick :$stars(text)"}catch {close $stars(file)}putlog "!$nick - $hand! Stars url List"} {putlog "Unable to Open $stars(path), file does not exist"puthelp "Notice $nick :An Error has occured, please contact the Administrator"}} {putlog "Unable to run !stars trigger, incorrect channel"puthelp "Notice $nick :This command is not avaliable on this channel"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sat Nov 16, 2002 8:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
