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

	<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>2006-11-21T19:48:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CadeFoster]]></name></author>
		<updated>2006-11-21T19:48:33-04:00</updated>

		<published>2006-11-21T19:48:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68311#p68311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68311#p68311"/>
		<title type="html"><![CDATA[Need little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68311#p68311"><![CDATA[
Thank You Sir_Fz ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8406">CadeFoster</a> — Tue Nov 21, 2006 7:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-11-21T10:39:32-04:00</updated>

		<published>2006-11-21T10:39:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68287#p68287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68287#p68287"/>
		<title type="html"><![CDATA[Need little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68287#p68287"><![CDATA[
add these lines to the script:<div class="codebox"><p>Code: </p><pre><code>bind notc - * notc:advbind ctcp - ACTION act:advbind part - * part:advbind msgm - * msg:advproc notc:adv {n u h a c} { filter_advertisement $n $u $h $c $a}proc act:adv {n u h c kw a} { filter_advertisement $n $u $h $c $a}proc part:adv {n u h c a} { filter_advertisement $n $u $h $c $a}proc msg:adv {n u h a} { foreach c [channels] {  filter_advertisement $n $u $h $c $a }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Nov 21, 2006 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CadeFoster]]></name></author>
		<updated>2006-11-21T07:31:05-04:00</updated>

		<published>2006-11-21T07:31:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68282#p68282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68282#p68282"/>
		<title type="html"><![CDATA[Need little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68282#p68282"><![CDATA[
yeah... I know.. but I wanna know if have some way to edit this tcl.. please help...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8406">CadeFoster</a> — Tue Nov 21, 2006 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-11-20T20:54:46-04:00</updated>

		<published>2006-11-20T20:54:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68264#p68264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68264#p68264"/>
		<title type="html"><![CDATA[Need little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68264#p68264"><![CDATA[
Search the <a href="http://www.egghelp.org/tcl.htm" class="postlink">Tcl Archive</a>, there are plenty of antispam scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Nov 20, 2006 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CadeFoster]]></name></author>
		<updated>2006-11-20T20:10:56-04:00</updated>

		<published>2006-11-20T20:10:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68263#p68263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68263#p68263"/>
		<title type="html"><![CDATA[Need little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68263#p68263"><![CDATA[
Hello. I need little help with this tcl<div class="codebox"><p>Code: </p><pre><code>### Set Bad Words that you want the Bot to Kick onset advwords { blqblq blqblq blq blq}### Set Words that you want the Bot to EXEMPT (Dont count as spam)set advexemptwords { "apniisp""#channel"}### Set Your Ban Reasonset advreason "Some Reason"### Set Ban Timeset advduration 24h### Begin Script:## (Don't change anything below here... Unless you know tcl)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]  set banmask "*![lindex [split $uhost @] 0]@[lindex [split $uhost @] 1]"     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 +f]} {              putlog "Protected: $nick ($handle) "            } elseif {[matchattr $handle +o]} {              putlog "Protected: $nick ($handle) "            } else {              putlog "KICKED $nick matched by $args"              putquick "KICK $nick :$advreason"            }          }        }      }    }}bind pubm - * filter_advertisement</code></pre></div>The tcl work good.. but he detect the word only when they are public msg. I wanna make the tcl to detect the word in NOTICE, PRIVATE , PART MSG, ACTION. If anyone know how to do this.. <br>thanks in advanced..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8406">CadeFoster</a> — Mon Nov 20, 2006 8:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
