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

	<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-06-22T08:57:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-06-22T08:57:30-04:00</updated>

		<published>2003-06-22T08:57:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22376#p22376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22376#p22376"/>
		<title type="html"><![CDATA[error detection and correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22376#p22376"><![CDATA[
You don't need any correction procedures<br><br>As I understood you have a PUBM bind, witch binds a procedure named bdkb_check_proc. Here's an example code:<br><div class="codebox"><p>Code: </p><pre><code>proc bdkb_check_proc { nick host hand chan text } {global bdkb_badwords  set text [split $text]  # now you can check a text for "bad words" by using lsearch   # or looping this text (using for,while,foreach and lindex [ofcourse :)])}</code></pre></div>I hope this will help you  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Sun Jun 22, 2003 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[meks]]></name></author>
		<updated>2003-06-22T07:41:45-04:00</updated>

		<published>2003-06-22T07:41:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22372#p22372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22372#p22372"/>
		<title type="html"><![CDATA[error detection and correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22372#p22372"><![CDATA[
hi!<br><br>is it possible to create a proc which is called if an error occurs?<br>this procedure should also fix the error if possible.<br><br>the reason why i'm asking is because i made a script which kicks people if they enter different "bad words" - for example "^^"<br>all these words are listed in one list called bdkb_badwords<br>example: set bdkb_badwords "*^^* ^?^" and so on...<br><br>this procedure is working quite fine, but it has one big bug.<br>if someone enter "^^ (please note the ") the following error occurs:<br>Tcl error [bdkb_check_proc]: unmatched open quote in list<br><br>therefore i got the idea of doing some error correction. how could i create such a procedure that either trims the trailing " or puts another " at the end? i got no idea...<br><br>tia<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3310">meks</a> — Sun Jun 22, 2003 7:41 am</p><hr />
]]></content>
	</entry>
	</feed>
