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

	<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-12-16T18:07:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2003-12-16T18:07:41-04:00</updated>

		<published>2003-12-16T18:07:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31527#p31527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31527#p31527"/>
		<title type="html"><![CDATA[When I recieve an error can i get it to try again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31527#p31527"><![CDATA[
user /me loves you<br><br>Thank you very much you just saved me hours of hair pulling and shouting and my pc screen hehe.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Tue Dec 16, 2003 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-16T13:56:49-04:00</updated>

		<published>2003-12-16T13:56:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31514#p31514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31514#p31514"/>
		<title type="html"><![CDATA[When I recieve an error can i get it to try again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31514#p31514"><![CDATA[
<blockquote class="uncited"><div>You can use the trace command and the errorInfo variable.</div></blockquote>Cool idea <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I think this might be something that GodOfSuicide could use for the issue he's mentioning in <a href="http://forum.egghelp.org/viewtopic.php?t=6309" class="postlink">this</a> post, untill (if it ever happens) eggdrop has been updated the way he wants.<br>However, I don't think it'll solve ShavedApe's problem.<blockquote class="uncited"><div>What I would like to know is how I can deal with this. </div></blockquote>Use 'catch'...eg:<div class="codebox"><p>Code: </p><pre><code>for {set i 0} {$i&lt;5} {incr i} {  if {[catch {# insert code causing error here...  } result]} {    # there was an error...reopen the database connection or whatever you need to do  } {    # everything went fine...display the result or whatever and 'break' to exit the for-loop  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 16, 2003 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2003-12-16T09:25:57-04:00</updated>

		<published>2003-12-16T09:25:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31494#p31494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31494#p31494"/>
		<title type="html"><![CDATA[When I recieve an error can i get it to try again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31494#p31494"><![CDATA[
nice thanks for the info I will have a play around. <br><br>Much appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Tue Dec 16, 2003 9:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MD87]]></name></author>
		<updated>2003-12-16T08:31:42-04:00</updated>

		<published>2003-12-16T08:31:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31492#p31492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31492#p31492"/>
		<title type="html"><![CDATA[When I recieve an error can i get it to try again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31492#p31492"><![CDATA[
You can use the trace command and the errorInfo variable. I wrote a tutorial on doing it for a friend a while ago - have a read <a href="http://www.md87.co.uk/tutorial/5" class="postlink">here</a> - just modify the middle bit of the code and replace it with your code to msg a channel <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=2374">MD87</a> — Tue Dec 16, 2003 8:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2003-12-15T17:29:42-04:00</updated>

		<published>2003-12-15T17:29:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31476#p31476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31476#p31476"/>
		<title type="html"><![CDATA[When I recieve an error can i get it to try again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31476#p31476"><![CDATA[
Ok not easy to explain in a topic. <br><br>I have an eggdrop that uses fbsql to connect to a mysl dbase and run querys. 90% of the time this goes smoothly but the other 10% of the time i get an error simmilar to the following.<br><br>Tcl error [join:chan]: Error 2013 (Lost connection to MySQL server during query)<br><br>Ok now I know what it means and the process here is not important. <br>What I would like to know is how I can deal with this.<br><br>for eg could I get the bot to echo the error to a specified chan and also could I get it upon recieving error it will try again upto a maximum of say 5 times.<br><br>Im kinda a noob at this stuff and i seem to stumble along as i go any and all help appreciated thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Dec 15, 2003 5:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
