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

	<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-25T15:38:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-03-25T15:38:54-04:00</updated>

		<published>2003-03-25T15:38:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18241#p18241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18241#p18241"/>
		<title type="html"><![CDATA[invalid idx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18241#p18241"><![CDATA[
<blockquote class="uncited"><div>that's the whole script besides a line that listens for connections on a specific port (see other post)<br><br>it works with a php script.  i'll have to figure them out together, i guess...</div></blockquote>Most likely the error is generated because the client closes the connection immediately before sending any character.<br>If the connection is closed by the client without sending any character, the "killdcc $idx" will fail because the idx has already been removed.<br><br>The eggdrop system sends an empty line to the tcl proc to indicate that the client did terminate the connection. Your proc should test for that. <br>And yes, I know it is a bit silly that eggdrop sends an empty line to indicate an end of connection. In my opinion eggdrop should send empty lines "as is" to the tcl proc. And use some special string like "***EOC***" to indicate an end of connection.<br>Read more on this issue:<br><a href="http://forum.egghelp.org/viewtopic.php?t=1094" class="postlink">http://forum.egghelp.org/viewtopic.php?t=1094</a><br><br>A sample of a listen control proc is:<br><a href="http://members.fortunecity.com/eggheadtcl/demo-listen.tcl.txt" class="postlink">http://members.fortunecity.com/eggheadt ... en.tcl.txt</a><br>If fortunecity denies direct viewing of the file, go to<br><a href="http://members.fortunecity.com/eggheadtcl" class="postlink">http://members.fortunecity.com/eggheadtcl</a><br>and then choose demo-listen.tcl.txt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Mar 25, 2003 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tami]]></name></author>
		<updated>2003-03-25T13:50:24-04:00</updated>

		<published>2003-03-25T13:50:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18236#p18236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18236#p18236"/>
		<title type="html"><![CDATA[invalid idx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18236#p18236"><![CDATA[
that's the whole script besides a line that listens for connections on a specific port (see other post)<br><br>it works with a php script.  i'll have to figure them out together, i guess...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=812">tami</a> — Tue Mar 25, 2003 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-25T05:50:52-04:00</updated>

		<published>2003-03-25T05:50:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18217#p18217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18217#p18217"/>
		<title type="html"><![CDATA[invalid idx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18217#p18217"><![CDATA[
An IDX is the name given, to the ID number of a connection, but it a bot, user, connection to a script, IRC server.<br><br>The script have pasted seems very happy with close brackets, which seem errornouse in there own right.<br><br>You would need to paste more of the script, to understand exactly where the error is,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Mar 25, 2003 5:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tami]]></name></author>
		<updated>2003-03-25T01:47:47-04:00</updated>

		<published>2003-03-25T01:47:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18215#p18215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18215#p18215"/>
		<title type="html"><![CDATA[invalid idx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18215#p18215"><![CDATA[
another one for the night<br><br>i have this tcl script..<br><br>control $idx incoming<br>}<br>proc incoming {idx args} {<br>if {[join $args] != "" } {<br>putserv "PRIVMSG #channel :$args"<br>}<br>killdcc $idx<br><br>why would i get this error? (below)<br>Tcl error [incoming]: invalid idx<br><br>what's an idx?  why is it invalid?<br><br>thanks <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=812">tami</a> — Tue Mar 25, 2003 1:47 am</p><hr />
]]></content>
	</entry>
	</feed>
