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

	<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>2003-03-16T16:00:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-03-16T16:00:07-04:00</updated>

		<published>2003-03-16T16:00:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17920#p17920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17920#p17920"/>
		<title type="html"><![CDATA[can you help me with a problem please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17920#p17920"><![CDATA[
thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Sun Mar 16, 2003 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-12T12:31:27-04:00</updated>

		<published>2003-03-12T12:31:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17784#p17784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17784#p17784"/>
		<title type="html"><![CDATA[can you help me with a problem please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17784#p17784"><![CDATA[
OK,<br><br>1: You use the append flag, rather than write to the open command<br><br>2: You read the whole file, and output the last 4 lines from your input.<br><div class="codebox"><p>Code: </p><pre><code>### update proc proc call_update { nick misc1 misc1end } {    if {$misc1 == "set"} {       set f [open "./tmp/update" "a"]       puts $f "$misc1end ($nick)"       close $f       notice $nick "Update set to: $misc1end"       msg $home "\002Update:\002 $misc1end"    } else {       set f [open "./tmp/update" "r"]       set update [split [read $f] \n]      close $f       foreach a [lrange $update end-3 end]        notice $nick "\002Update:\002 $a"       }   } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Mar 12, 2003 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-03-12T12:20:24-04:00</updated>

		<published>2003-03-12T12:20:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17783#p17783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17783#p17783"/>
		<title type="html"><![CDATA[can you help me with a problem please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17783#p17783"><![CDATA[
hi there!<br><br>I have written this little proc:<br><div class="codebox"><p>Code: </p><pre><code>### update procproc call_update { nick misc1 misc1end } {if {$misc1 == "set"} {set f [open "./tmp/update" "w"]puts $f "$misc1end ($nick)"close $fnotice $nick "Update set to: $misc1end"msg $home "\002Update:\002 $misc1end"} else {set f [open "./tmp/update" "r"]set update [gets $f]close $fnotice $nick "\002Update:\002 $update"}}</code></pre></div>how to make, that it adds a line under the last?<br>and that if I make show 4 it shows the last 4 changes?<br><br>thanks for any help! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Wed Mar 12, 2003 12:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
