tami wrote:that's the whole script besides a line that listens for connections on a specific port (see other post)
it works with a php script. i'll have to figure them out together, i guess...
Most likely the error is generated because the client closes the connection immediately before sending any character.
If the connection is closed by the client without sending any character, the "killdcc $idx" will fail because the idx has already been removed.
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.
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.
Read more on this issue:
http://forum.egghelp.org/viewtopic.php?t=1094
A sample of a listen control proc is:
http://members.fortunecity.com/eggheadt ... en.tcl.txt
If fortunecity denies direct viewing of the file, go to
http://members.fortunecity.com/eggheadtcl
and then choose demo-listen.tcl.txt