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

	<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-06-14T09:16:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-06-14T09:16:00-04:00</updated>

		<published>2002-06-14T09:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7969#p7969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7969#p7969"/>
		<title type="html"><![CDATA[help me whit a litle question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7969#p7969"><![CDATA[
It's called laziness to not even try.<div class="codebox"><p>Code: </p><pre><code>set bfile "/usr/local/eggdrop/asobiba/lan.txt"set cmd "!nextlan"set bwhere 1bind pub -|- $cmd dumpfile proc dumpfile {nick handle host chan text } {  global bfile bwhere  set foo [open $bfile r]  set line [read $foo]  if {!$bwhere} {    puthelp "NOTICE $nick :[lindex $line [expr [llength $line] - 1]]"  } else {    puthelp "NOTICE $chan :[lindex $line [expr [llength $line] - 1]]"  }  catch {close $foo}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jun 14, 2002 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blarre]]></name></author>
		<updated>2002-06-13T15:31:00-04:00</updated>

		<published>2002-06-13T15:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7941#p7941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7941#p7941"/>
		<title type="html"><![CDATA[help me whit a litle question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7941#p7941"><![CDATA[
ahh, its soo hard <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":razz:" title="Razz">...<br>the script line for that??<br><br>&lt;font size=-1&gt;[ This Message was edited by: blarre on 2002-06-13 13:31 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1198">blarre</a> — Thu Jun 13, 2002 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-06-13T14:55:00-04:00</updated>

		<published>2002-06-13T14:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7937#p7937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7937#p7937"/>
		<title type="html"><![CDATA[help me whit a litle question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7937#p7937"><![CDATA[
you read through the whole file, store it in a list, and extract the last line from that list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Thu Jun 13, 2002 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blarre]]></name></author>
		<updated>2002-06-13T07:43:00-04:00</updated>

		<published>2002-06-13T07:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7916#p7916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7916#p7916"/>
		<title type="html"><![CDATA[help me whit a litle question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7916#p7916"><![CDATA[
please!! only need to now how i do soo the bot only read the last line in the file...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1198">blarre</a> — Thu Jun 13, 2002 7:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blarre]]></name></author>
		<updated>2002-06-12T16:51:00-04:00</updated>

		<published>2002-06-12T16:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7891#p7891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7891#p7891"/>
		<title type="html"><![CDATA[help me whit a litle question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7891#p7891"><![CDATA[
hi, i have a script that read from a text file... now its reading allt the text in the file but i whant it to only read the last line...<br>::: Here is the script :::<br>set bfile "/usr/local/eggdrop/asobiba/lan.txt"<br><br>set cmd "!nextlan"<br><br>set bwhere 1<br><br>bind pub -|- $cmd dumpfile<br>proc dumpfile {nick handle host chan text } {<br>global bfile bwhere<br>set foo [open $bfile r]<br>while { ! [eof $foo] } {<br>        set line [gets $foo]<br>                if {!$bwhere} {<br>                puthelp "NOTICE $nick :$line"<br>                } else {<br>                puthelp "NOTICE $chan :$line"<br>                }<br>        }<br>}<br><br><br>thanks<br>//Patrik<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1198">blarre</a> — Wed Jun 12, 2002 4:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
