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

	<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>2007-11-03T10:53:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-03T10:53:05-04:00</updated>

		<published>2007-11-03T10:53:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77419#p77419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77419#p77419"/>
		<title type="html"><![CDATA[this is not working why ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77419#p77419"><![CDATA[
You try to execute the proc randomline before you've created it..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Nov 03, 2007 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2007-11-03T02:36:44-04:00</updated>

		<published>2007-11-03T02:36:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77416#p77416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77416#p77416"/>
		<title type="html"><![CDATA[this is not working why ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77416#p77416"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set slap "./slap.txt" set slapmsg [string range [randomline $slap] 0 end] # Insert your own procedure. proc randomline { filename } { set position [rand [expr [file size $filename] - 1024]] set fd [open $filename r] catch { seek $fd $position set text [read $fd 1024] } close $fd set lines [split $text \n] set lineno [randrange 1 [expr [llength $lines] - 1]] return [lindex $lines $lineno] }</code></pre></div><br>The Errors are...<br><br><div class="codebox"><p>Code: </p><pre><code>[06:28] Tcl error in file 'HosTer.conf':[06:28] invalid command name "randomline"    while executing"randomline $slap"    invoked from within"string range [randomline $slap] 1 end"    invoked from within"set slapmsg [string range [randomline $slap] 1 end] "    (file "scripts/slap.tcl" line 2)    invoked from within"source scripts/slap.tcl"    (file "HosTer.conf" line 262)[06:28] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Sat Nov 03, 2007 2:36 am</p><hr />
]]></content>
	</entry>
	</feed>
