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

	<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>2002-01-11T09:03:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-11T09:03:00-04:00</updated>

		<published>2002-01-11T09:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3708#p3708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3708#p3708"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3708#p3708"><![CDATA[
It would be nice if this was included with eggdrop by default, either via an option in the config to turn on, or the TCL included. I can't count the times I crashed my bot while trying to get a tcl working properly.<p>Statistics: Posted by Guest — Fri Jan 11, 2002 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-01-10T13:54:00-04:00</updated>

		<published>2002-01-10T13:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3679#p3679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3679#p3679"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3679#p3679"><![CDATA[
I have a script that does what I was talking about earlier. That way you can use 'source' just like always and it still does the error catching and logging.<br><br><a href="http://home.dal.net/stdragon/eggdrop/safesource.tcl" class="postlink">http://home.dal.net/stdragon/eggdrop/safesource.tcl</a><br><br>Just do: source scripts/safesource.tcl before you load any other scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 10, 2002 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-10T02:36:00-04:00</updated>

		<published>2002-01-10T02:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3663#p3663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3663#p3663"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3663#p3663"><![CDATA[
this is what I finally came up with.  It shows the error just like it normally would but it doesn't crash the bot.<div class="codebox"><p>Code: </p><pre><code>if { [catch {source scripts/dice.tcl}] } { putlog "Error in dice.tcln $errorInfo" }</code></pre></div>just change dice.tcl with whatever script you are loading in both places.<br><br>Thanks for your help guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Thu Jan 10, 2002 2:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-01-09T22:22:00-04:00</updated>

		<published>2002-01-09T22:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3656#p3656</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3656#p3656"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3656#p3656"><![CDATA[
EG<br><div class="codebox"><p>Code: </p><pre><code>catch {unknown_command} var1</code></pre></div>The error msg is now stored in "var1"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 09, 2002 10:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-09T22:00:00-04:00</updated>

		<published>2002-01-09T22:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3655#p3655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3655#p3655"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3655#p3655"><![CDATA[
ok, the putlog is working ... thanks<br><br>now the only problem is I don't know what variable stores the error message.  Anybody?<p>Statistics: Posted by Guest — Wed Jan 09, 2002 10:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-01-09T12:48:00-04:00</updated>

		<published>2002-01-09T12:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3641#p3641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3641#p3641"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3641#p3641"><![CDATA[
The simplest method to show it in the partyline, is to issue a "putlog" with the variable storing the info.<br><br>I am wondering if you where on about an alternative to eggdrops timer command? As that only spits out "error in timerXXXX"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 09, 2002 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-09T11:17:00-04:00</updated>

		<published>2002-01-09T11:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3636#p3636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3636#p3636"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3636#p3636"><![CDATA[
yeah, it did sort of replace the source command but it was really just a catch for the source.  I've got it catching the error so that it doesn't crash the bot, I am just not sure how to show the error in the party line.<br><br>&lt;font size=-1&gt;[ This Message was edited by: PeTrArChY on 2002-01-09 08:17 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Wed Jan 09, 2002 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-01-09T11:02:00-04:00</updated>

		<published>2002-01-09T11:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3633#p3633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3633#p3633"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3633#p3633"><![CDATA[
It's probably a replacement "source" command. I wrote one once, it's pretty simple. Rename the old source command to "old_source" or something, then make a new source command that does catch {old_source $scriptname} and reports errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jan 09, 2002 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-09T10:04:00-04:00</updated>

		<published>2002-01-09T10:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3630#p3630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3630#p3630"/>
		<title type="html"><![CDATA[need an error checking routine]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3630#p3630"><![CDATA[
I saw an error checking routine one time that really impressed me but I didn't write it down and now I can't remember what it was for the life of me.  Anyway, what it did was catch errors in a tcl script, output them to the party line and then just not load that script, it wouldn't crash the bot.<br><br>I know that it was done using catch but can anyone help me with some code for this?  I've been pulling my hair out for days trying to figure it out.<p>Statistics: Posted by Guest — Wed Jan 09, 2002 10:04 am</p><hr />
]]></content>
	</entry>
	</feed>
