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

	<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>2007-06-24T07:19:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-06-24T07:19:18-04:00</updated>

		<published>2007-06-24T07:19:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73864#p73864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73864#p73864"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73864#p73864"><![CDATA[
Actually you can use stripcodes in eggdrop v1.6.17 or higher, and remove that strip codes proc.<br><div class="codebox"><p>Code: </p><pre><code>set args [stripcodes bcruag $args]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 24, 2007 7:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T18:38:12-04:00</updated>

		<published>2007-06-22T18:38:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73798#p73798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73798#p73798"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73798#p73798"><![CDATA[
You probably used some editor which added a \n after 'if' or something like that causing it to become erroneous. Use a proper editor (such as notepad on windows) while pasting/editing code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irate]]></name></author>
		<updated>2007-06-22T11:27:48-04:00</updated>

		<published>2007-06-22T11:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73789#p73789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73789#p73789"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73789#p73789"><![CDATA[
Yeah, I fixed that, and then it showed me that error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9076">irate</a> — Fri Jun 22, 2007 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-06-22T10:41:05-04:00</updated>

		<published>2007-06-22T10:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73787#p73787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73787#p73787"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73787#p73787"><![CDATA[
I made a typo error (-nocaase) in the second if statement of the forward loop, i've updated the code in the post above. It should work now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Jun 22, 2007 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-06-22T04:07:10-04:00</updated>

		<published>2007-06-22T04:07:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73772#p73772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73772#p73772"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73772#p73772"><![CDATA[
<blockquote class="uncited"><div>Does anyone know what's causing that error?</div></blockquote>The conditional statement is incorrect.<br><br>Have a closer look.<br><br>This might help also: <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/if.htm" class="postlink">if manual page</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Jun 22, 2007 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irate]]></name></author>
		<updated>2007-06-22T01:19:45-04:00</updated>

		<published>2007-06-22T01:19:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73771#p73771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73771#p73771"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73771#p73771"><![CDATA[
Does anyone know what's causing that error?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9076">irate</a> — Fri Jun 22, 2007 1:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irate]]></name></author>
		<updated>2007-06-21T17:11:43-04:00</updated>

		<published>2007-06-21T17:11:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73746#p73746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73746#p73746"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73746#p73746"><![CDATA[
There's an error still<br><blockquote class="uncited"><div> Tcl error [filter_racism]: wrong # args: no expression after "if" argument</div></blockquote>Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9076">irate</a> — Thu Jun 21, 2007 5:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-06-22T10:41:34-04:00</updated>

		<published>2007-06-21T14:04:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73743#p73743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73743#p73743"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73743#p73743"><![CDATA[
It would be easier to check if the word is protected/excempt before.<br><br>Try:<br><div class="codebox"><p>Code: </p><pre><code>proc filter_advertisement {nick uhost handle channel text} {  global advwords advreason banmask botnick advduration advexemptwords  set text [ccodes:filter $text]  set racist 0  foreach word [split $text " "] {    if {![string match -nocase "*$word*" "$advexemptwords"]} {      if {[string match -nocase "*$word*" "$advwords"]} {        set racist 1        break      }    }  }  if {[matchattr $handle o|o $channel] &amp;&amp; $racist} {    putserv "PRIVMSG #iratest :An admin $nick used a racist word ($text)."  } elseif {$racist} {    putserv "KICK $channel $nick :noob"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Jun 21, 2007 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irate]]></name></author>
		<updated>2007-06-21T11:56:35-04:00</updated>

		<published>2007-06-21T11:56:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73741#p73741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73741#p73741"/>
		<title type="html"><![CDATA[Anti Racism]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73741#p73741"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set advwords { "offensive word"}  ### Set Advertising Words that you want the Bot to EXEMPT (Dont count as spam)set advexemptwords { "night"}### Borrowed from awyeahs tcl scripts (www.awyeah.org) ###proc ccodes:filter {str} {  regsub -all -- {\003([0-9]{1,2}(,[0-9]{1,2})?)?|\017|\037|\002|\026|\006|\007} $str "" str  return $str}## Binding all Public Messages to our Processbind pubm - * filter_advertisement## Starting Processproc filter_advertisement {nick uhost handle channel args} {  global advwords advreason banmask botnick advduration advexemptwords  set args [ccodes:filter $args]  set handle [nick2hand $nick]  foreach advword [string tolower $advwords] {    if {[string match *$advword* [string tolower $args]]}  {      foreach advexemptword [string tolower $advexemptwords] {             if {![string match *$advexemptword* [string tolower $args]]}  {          if {[matchattr $handle Kooky15]} {            } elseif {[matchattr $handle +o]} {            putserv "PRIVMSG #iratest :The admin $nick used a racist word ($args)."            } else {            putquick "KICK $channel $nick :noob"          }        }      }    }  }}</code></pre></div>It halts after the second if, if someone could help me fix it, it would be great. Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9076">irate</a> — Thu Jun 21, 2007 11:56 am</p><hr />
]]></content>
	</entry>
	</feed>
