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

	<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>2002-09-02T06:13:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-02T06:13:36-04:00</updated>

		<published>2002-09-02T06:13:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10334#p10334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10334#p10334"/>
		<title type="html"><![CDATA[Spam Notice Detector - Urgent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10334#p10334"><![CDATA[
First of all thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br><br>TCL error: invalid command name "}"<br>removed one } from the bottom and works<br><br>and how could I make it record number of users caught spamming?<br>it should add them after msging to file and when i typed !spammers it should tell me number of spammers caught (read from file)<br><br>thanks in advance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Mon Sep 02, 2002 6:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-02T05:04:48-04:00</updated>

		<published>2002-09-02T05:04:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10332#p10332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10332#p10332"/>
		<title type="html"><![CDATA[Spam Notice Detector - Urgent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10332#p10332"><![CDATA[
Just a note, this script would have nto worked, and looks like it has been cut from a larger script, due tot he fact, that there are extra }'s for no reason. There is also checks to see if a channel has the +f flag.<br><div class="codebox"><p>Code: </p><pre><code>bind NOTC - "*www.*" spamnbind NOTC - "*http//*" spamnbind NOTC - "*/server*" spamnset chanz "#"proc spamn {nick uhost handle text dest} {  global botnick  if {[validchan $dest]} {    if {[matchattr $nick mf|mf $dest] || [isop $nick $dest] || [isvoice $nick $dest] || [matchattr $nick f|f $dest]} {return 0}  } else {    if {[matchattr $nick mf]} { return 0 }  }  if {([isbotnick $nick]) || ([string tolower $nick] == "chanserv")} {return 0}  set spammermask "*!*[lindex [split $uhost @] 1]"  putquick "PRIVMSG NoSpam :$nick address $spammermask was spamming"  return 1}}putlog "! Loaded Spam Notice Detector !"</code></pre></div>This will check both channel and private notces. Channel notices are checked to see if the user is a op or voice in the channel, or they have the global or channel m or f flags, for provate notices, if they have the m or f global flags, the messgae is stoped.<br><br>This script below will only send messages regarding channel notices.<br><div class="codebox"><p>Code: </p><pre><code>bind NOTC - "*www.*" spamnbind NOTC - "*http//*" spamnbind NOTC - "*/server*" spamnset chanz "#"proc spamn {nick uhost handle text dest} {  global botnick  if {![validchan $dest]} { retrun 0 }  if {[matchattr $nick mf|mf $dest] || [isop $nick $dest] || [isvoice $nick $dest] || [matchattr $nick f|f $dest]} {return 0}  if {([isbotnick $nick]) || ([string tolower $nick] == "chanserv")} {return 0}  set spammermask "*!*[lindex [split $uhost @] 1]"  putquick "PRIVMSG NoSpam :$nick address $spammermask was spamming"  return 1}}putlog "! Loaded Spam Notice Detector !"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Sep 02, 2002 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-02T04:43:54-04:00</updated>

		<published>2002-09-02T04:43:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10329#p10329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10329#p10329"/>
		<title type="html"><![CDATA[Spam Notice Detector - Urgent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10329#p10329"><![CDATA[
#This script is supposed to send a msg to a #Nospam channel when it #gets #notice which contains some forbidden strings. <br><br># It actually works, but I would like it to react on chan notices in all #channels bot is in but it reacts not only on chan notices in chan "#". <br><br>#I would also like to make a lil stats, after sending msg about spammer #bot should add it stats, so when i type !spammers number of caught #spammers is displayed. Thanks a lot <br><br>bind NOTC - "*<a href="www" class="postlink">www</a>.*" spamn <br>bind NOTC - "*http//*" spamn <br>bind NOTC - "*/server*" spamn <br><br>set chanz "#" <br><br>proc spamn { nick uhost handle text {dest ""} } { <br>global botnick chanz spammermask <br>if {[matchattr $nick m] || [isop $nick $chanz] || [matchattr $chanz f] || [isvoice $nick $chanz] || [matchattr $nick f|f $chanz]} {return 0} <br>if {$nick == $botnick} {return 0} <br>if {$nick == "ChanServ"} {return 0} <br>set spammermask "*!*[string range $uhost [string first "@" $uhost] end]" <br>putquick "PRIVMSG NoSpam :$nick address $spammermask was  spamming" <br>return 1 <br>} <br>putlog "! Loaded Spam Notice Detector !"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Mon Sep 02, 2002 4:43 am</p><hr />
]]></content>
	</entry>
	</feed>
