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

	<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>2004-01-08T13:43:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-08T13:43:45-04:00</updated>

		<published>2004-01-08T13:43:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32338#p32338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32338#p32338"/>
		<title type="html"><![CDATA[Bot crashing when getting no response using a TCL script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32338#p32338"><![CDATA[
Hi all,<br><br>I have a bit of a problem, I hope you can give me some directions.<br>I have the following code:<br><div class="codebox"><p>Code: </p><pre><code>proc sendstart {nick host hand chan text} { global server port set s [ socket $server $port] puts $s "$text" flush $s set line [gets $s] putquick "PRIVMSG $chan :$line"}</code></pre></div>This will send the input the user gives after !send (ie. !send version) and it would return some info he get's from the server.<br><br>But the problem is this. If the other server I connect to is not available, or the service isn't returning anything, my bot times out and crashes. Is there a way to prevent this? I though of using a timer and check after 5 seconds, if there is no result, return with "Problem with service"<br><br>But I don't know how to do this<br>Anyone got some suggestions?<br><br>Thankx,<br><br>Chrizz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Thu Jan 08, 2004 1:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
