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

	<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-04-27T05:24:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-04-26T19:45:34-04:00</updated>

		<published>2003-04-26T19:45:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19479#p19479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19479#p19479"/>
		<title type="html"><![CDATA[bind pubm questions.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19479#p19479"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># a close bracket missing hereif {([string trim $line != "") &amp;&amp;# make sure you get it right before testing or your bot will crashif {([string trim $line] != "") &amp;&amp;</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Apr 26, 2003 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MC_8]]></name></author>
		<updated>2003-04-27T05:24:31-04:00</updated>

		<published>2003-04-26T17:18:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19467#p19467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19467#p19467"/>
		<title type="html"><![CDATA[bind pubm questions.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19467#p19467"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set io [open the_datafile.dat r]while {![eof $io]} {  gets $io line  if {([string trim $line] != "") &amp;&amp;      [string match $line $the_text_said]} {    ;# Found match, do stuff here.    break  }}close $io</code></pre></div>------<br><br>There is an example.  Opens 'the_datafile.dat', reads each line assuming the line is a glob style string to match against '$the_text_said'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3080">MC_8</a> — Sat Apr 26, 2003 5:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-29T00:55:18-04:00</updated>

		<published>2003-03-29T00:55:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18311#p18311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18311#p18311"/>
		<title type="html"><![CDATA[bind pubm questions.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18311#p18311"><![CDATA[
I was hoping someone could help me out, I'm fairly new to tcl and don't have a very extensive resouce list yet..<br><br> I'm trying to write a script that is basically a badword script, I'd like the badwords to be in a file so more words can be easily added. I guess my main question is if there is a way to use  bind pubm and a variable that holds the various words in the badword file?<br><br>Bad Words v5.1.9 by MC_8 is pretty close to what I want, but it seems like way way overkill for my needs (plus I'd like to write it myself (for the most part anyway <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> ) <br><br>thanks!<p>Statistics: Posted by Guest — Sat Mar 29, 2003 12:55 am</p><hr />
]]></content>
	</entry>
	</feed>
