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

	<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>2012-03-28T14:25:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Burke-1]]></name></author>
		<updated>2012-03-28T14:25:17-04:00</updated>

		<published>2012-03-28T14:25:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99131#p99131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99131#p99131"/>
		<title type="html"><![CDATA[Reading from .txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99131#p99131"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set sex "./sex.txt"bind pub - !sex sex:msgproc sex:msg {nick uhost hand chan arg} {  global sex  set sexmsg [string range [randomline $sex] 0 end]  puthelp "privmsg $chan :$sexmsg"}proc randomline f { set data [split [read [set file [open $f]]][close $file] \n] set position [rand [llength $data]] lindex $data $position}</code></pre></div>is there a way this can be modified, so it will keep track of which lines from the sex.txt have been used, and not repeat those until all lines have been used ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11954">Burke-1</a> — Wed Mar 28, 2012 2:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
