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

	<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-08-05T05:46:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-05T05:46:37-04:00</updated>

		<published>2002-08-05T05:46:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9424#p9424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9424#p9424"/>
		<title type="html"><![CDATA[channel message can shutdown eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9424#p9424"><![CDATA[
this line is the cause.<br><br>set msg [catch {expr $kaava} tulos]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Aug 05, 2002 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-02T14:23:49-04:00</updated>

		<published>2002-08-02T14:23:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9390#p9390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9390#p9390"/>
		<title type="html"><![CDATA[Additions...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9390#p9390"><![CDATA[
I also tried to quote the pattern, but that didn't do the trick.<br><br>If I remove the whole script then it will not die, so it must be in somewhere above the if clause that causes the $kaava to be executed.<p>Statistics: Posted by Guest — Fri Aug 02, 2002 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-02T13:53:33-04:00</updated>

		<published>2002-08-02T13:53:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9389#p9389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9389#p9389"/>
		<title type="html"><![CDATA[channel message can shutdown eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9389#p9389"><![CDATA[
I tried to white a string containing [die] on my own channel and my bot died shortly after this. I couldn't track where and what did cause this. I tried adding check for *\[*\]*" in one of my scripts, but it dies before it gets that far.<br><br>--- laske.tcl ---<div class="codebox"><p>Code: </p><pre><code>bind pub - !laske pub:laskeproc pub:laske {nick uhost hand chan args} {    set kaava [join $args]    out_msg $nick $hand $chan "[string match *\[*\]* $kaava]"    if {[string match *\[*\]* $kaava] == 1} {      out_msg $nick $hand $chan "Ei saa suorittaa komentoja!"      return 0    }    set msg [catch {expr $kaava} tulos]    putlog "Laske: [join $args], error=$msg, tulos=$tulos"    if {$msg == 0} {      out_msg $nick $hand $chan "$kaava = $tulos"    } else {      out_msg $nick $hand $chan "$kaava: virhe kaavassa ($msg)"    }}</code></pre></div>--- end of laske.tcl ---<br><br>I tried also without the ' == 1' in the if clause.<p>Statistics: Posted by Guest — Fri Aug 02, 2002 1:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
