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

	<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-09-07T04:55:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TsT]]></name></author>
		<updated>2003-09-07T04:55:43-04:00</updated>

		<published>2003-09-07T04:55:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26672#p26672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26672#p26672"/>
		<title type="html"><![CDATA[Re: Well, there is a close...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26672#p26672"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[...]  while {![eof $onmsg]} {    gets $onmsg msg1    set tempmsg [split $msg1 " " ]    set tempmsg0 [lindex $tempmsg 0]    switch -- $tempmsg0 {      1 - 2 - 3 - 4 - 5 {         set msg [string trimleft $msg1 $tempmsg0]      }      "" {close $onmsg ; return 1}    }    puthelp "NOTICE $nick :$msg "  }  close $onmsg[...]</code></pre></div>This is a example to use switch...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2803">TsT</a> — Sun Sep 07, 2003 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-07T03:16:06-04:00</updated>

		<published>2003-09-07T03:16:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26671#p26671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26671#p26671"/>
		<title type="html"><![CDATA[Re: Well, there is a close...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26671#p26671"><![CDATA[
<blockquote class="uncited"><div>    } elseif {[lindex $tempmsg 0] == ""} {<br>      return 1<br>    } </div></blockquote>It is returning without closing the file first... as such you should<br>add in a "close $onmsg" before the return statement.<br><br>You should contact the author of the script, and if the script is a file in the egghelp.org database, you may want to consider contacting slennox as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Sep 07, 2003 3:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-09-07T02:18:05-04:00</updated>

		<published>2003-09-07T02:18:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26670#p26670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26670#p26670"/>
		<title type="html"><![CDATA[Well, there is a close...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26670#p26670"><![CDATA[
proc onjoin_out {nick addr hand chan} {<br>  global botnick<br>  set onmsg [open $botnick.$chan a+]<br>  seek $onmsg 0 start <br><br>while {![eof $onmsg]} {<br>    gets $onmsg msg1<br>    set tempmsg [split $msg1 " " ]<br>    if { [lindex $tempmsg 0] == "1" } {<br>      set msg [string trimleft $msg1 "1"]<br>    } elseif { [lindex $tempmsg 0] == "2" } {<br>      set msg [string trimleft $msg1 "2"]<br>    } elseif { [lindex $tempmsg 0] == "3" } {<br>      set msg [string trimleft $msg1 "3"]<br>    } elseif { [lindex $tempmsg 0] == "4" } {<br>      set msg [string trimleft $msg1 "4"]<br>    } elseif { [lindex $tempmsg 0] == "5" } {<br>      set msg [string trimleft $msg1 "5"]<br>    } elseif {[lindex $tempmsg 0] == ""} {<br>      return 1<br>    } <br>    puthelp "NOTICE $nick :$msg "<br>  }<br>  close $onmsg<br>}<br><br>That should close it correctly, shouldnt it? btw, this isn't my code.<p>Statistics: Posted by Guest — Sun Sep 07, 2003 2:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-06T20:01:53-04:00</updated>

		<published>2003-09-06T20:01:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26662#p26662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26662#p26662"/>
		<title type="html"><![CDATA[Too many open files.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26662#p26662"><![CDATA[
you have forgotten to close the file at the end of the proc<br><br>search the file where "proc onjoin_out" is in and add a close for the file thats opened<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Sep 06, 2003 8:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-09-06T19:44:21-04:00</updated>

		<published>2003-09-06T19:44:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26661#p26661</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26661#p26661"/>
		<title type="html"><![CDATA[Too many open files.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26661#p26661"><![CDATA[
I run a botnet of 3 eggdrops, and on one of them (only noticed this on one so far). I get errors like:<br>[07:00] ERROR writing user file.<br>[07:04] Tcl error [onjoin_out]: couldn't open "Balthamos.#chat-world": too many open files<br>(4 minute difference there).<br>Not sure about it being a tcl error considering the user file error. If it starts getting these errors, it wont accept dcc or telnet connections either for the same reason (too many open files).<br><br>Anyone know what is wrong?<p>Statistics: Posted by Guest — Sat Sep 06, 2003 7:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
