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

	<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>2009-03-26T15:30:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-03-26T15:30:33-04:00</updated>

		<published>2009-03-26T15:30:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88127#p88127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88127#p88127"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88127#p88127"><![CDATA[
<blockquote class="uncited"><div>After executing whatever kick/ban/warning code simply use the Tcl command break to exit the foreach loop.<br><br>I have to say, I have a particular loathing of these scripts. They lack inbuilt intelligence (masks are generally too vague). For example, all it takes is for one user to say to another user on the channel "Are you on myspace?" and they get an immediate sticky ban.</div></blockquote>Well I didn't decide the binds, someone asked me to do it with these wildcards ^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Thu Mar 26, 2009 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zerodtk]]></name></author>
		<updated>2009-03-25T20:52:57-04:00</updated>

		<published>2009-03-25T20:52:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88113#p88113</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88113#p88113"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88113#p88113"><![CDATA[
or just try to add it with *www*biz*<br>just a quick thought<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10567">zerodtk</a> — Wed Mar 25, 2009 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-25T12:45:59-04:00</updated>

		<published>2009-03-25T12:45:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88091#p88091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88091#p88091"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88091#p88091"><![CDATA[
After executing whatever kick/ban/warning code simply use the Tcl command break to exit the foreach loop.<br><br>I have to say, I have a particular loathing of these scripts. They lack inbuilt intelligence (masks are generally too vague). For example, all it takes is for one user to say to another user on the channel "Are you on myspace?" and they get an immediate sticky ban.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Wed Mar 25, 2009 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-03-25T08:13:42-04:00</updated>

		<published>2009-03-25T08:13:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88086#p88086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88086#p88086"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88086#p88086"><![CDATA[
<blockquote class="uncited"><div>It is a sort of byproduct of your method of dealing with spam. Specifically, seperate PUBM binds.<br><br>The norm would be to create a list of *spam* masks and, using a single PUBM bind, test each in a foreach loop. You could then output and break from the loop upon finding the first incidence of spam.<br><br>Remember also that the bot must test each PUBM bind against each IRC channel chat line. In a fast moving channel with many PUBM binds, that puts a significant strain on the bots resources.<br><br>Check out the scripts on offer on this site's Tcl achive. It's a good way to learn.<br><br>To be fair I suppose testing each chat line against many spam masks is perhaps also something of a strain too.</div></blockquote>yeah I see. someone told me to use regular expressions for URL matching. But maybe your method is better, I'll try and download some sample script @ the TCL archive. anyway, how would I stop a loop upon the first matching?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Wed Mar 25, 2009 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kein]]></name></author>
		<updated>2009-03-24T12:42:47-04:00</updated>

		<published>2009-03-24T12:42:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88065#p88065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88065#p88065"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88065#p88065"><![CDATA[
OMG<br>That is the first time when I see such big amounts of pubms &gt;_&gt;<br><br>As <strong class="text-strong">arfer</strong> already said: use general '*' pubm :P<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9854">Kein</a> — Tue Mar 24, 2009 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-24T06:45:18-04:00</updated>

		<published>2009-03-24T06:45:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88054#p88054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88054#p88054"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88054#p88054"><![CDATA[
It is a sort of byproduct of your method of dealing with spam. Specifically, seperate PUBM binds.<br><br>The norm would be to create a list of *spam* masks and, using a single PUBM bind, test each in a foreach loop. You could then output and break from the loop upon finding the first incidence of spam.<br><br>Remember also that the bot must test each PUBM bind against each IRC channel chat line. In a fast moving channel with many PUBM binds, that puts a significant strain on the bots resources.<br><br>Check out the scripts on offer on this site's Tcl achive. It's a good way to learn.<br><br>To be fair I suppose testing each chat line against many spam masks is perhaps also something of a strain too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Mar 24, 2009 6:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-03-23T18:26:55-04:00</updated>

		<published>2009-03-23T18:26:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88045#p88045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88045#p88045"/>
		<title type="html"><![CDATA[Spam protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88045#p88045"><![CDATA[
Hey there,<br><br>I'm building an anti-spam script which is now something like this:<br><div class="codebox"><p>Code: </p><pre><code>set varExceptions {  "exception 1"  "exception 2"}bind pubm - "$spamchan *.net*" spamfilterbind pubm - "$spamchan *http://*" spamfilterbind pubm - "$spamchan *www.*" spamfilterbind pubm - "$spamchan *hotmail*" spamfilterbind pubm - "$spamchan *mail*" spamfilterbind pubm - "$spamchan *youtube*" spamfilterbind pubm - "$spamchan *myspace*" spamfilterbind pubm - "$spamchan *blog*" spamfilterbind pubm - "$spamchan *flog*" spamfilterbind pubm - "$spamchan *fotolog*" spamfilterbind pubm - "$spamchan *#*" spamfilterbind pubm - "$spamchan *.pt*" spamfilterbind pubm - "$spamchan *.com.pt*" spamfilterbind pubm - "$spamchan *.biz*" spamfilterbind pubm - "$spamchan *.info*" spamfilterbind pubm - "$spamchan *.com*" spamfilterbind pubm - "$spamchan *.net*" spamfilterbind pubm - "$spamchan *.org*" spamfilterbind pubm - "$spamchan *.co.uk*" spamfilterbind pubm - "$spamchan *.eu*" spamfilterbind pubm - "$spamchan *.au*" spamfilterbind pubm - "$spamchan *.com.br*" spamfilterbind pubm - "$spamchan *.tv*" spamfilterbind pubm - "$spamchan *.org.pt*" spamfilterbind pubm - "$spamchan *.me*" spamfilterproc spamfilter { nick uhost hand chan text } {  global varExceptions spammer  foreach site $varExceptions {    if {[string match -nocase "*$site*" $text]} {return 0}  }  if {(![isop $nick $chan]) &amp;&amp; (![ishalfop $nick $chan]) &amp;&amp; (![isvoice $nick $chan]) } {set host *!*@[lindex [split $uhost @] 1]newchanban $chan ~q:$host RoBotX(nospam.tcl) spammer($chan) 60 stickyputserv "PRIVMSG $chan $nick: You're not allowed to spam on $chan. Adding temporary ~q: ban on your host. All your messages will be ignored from now on."}} </code></pre></div>The problem is that when someone says "Visit  my website --&gt; <a href="http://www.testsomething.net" class="postlink">www.testsomething.net</a>", the bot sends double message, 'cos it binds the *<a href="www" class="postlink">www</a>.* and *.net* -.-"<br><br>However I want to bind all these wildcards because sometimes they just say "site.net", etc... and I also have to mantain my exceptions.<br><br>What's your suggestion to solve my problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Mon Mar 23, 2009 6:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
