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

	<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-05-12T16:26:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-05-12T16:26:00-04:00</updated>

		<published>2002-05-12T16:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6874#p6874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6874#p6874"/>
		<title type="html"><![CDATA[need help with code - spam checker]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6874#p6874"><![CDATA[
ok I have 2 bots. One is opped and the other is not.<br>I want the deopped bot to send spam info to the one that is opped so it can kick.<br>I wrote 2 files. One for the opped bot and one for the deopped. Can anyone tell me why the code is not working. Thanks guys<br><br>Opped Bot File:<blockquote class="uncited"><div>bind bot * "report" nospamz<br><br>proc nospamz {frombotz commandz argz} {<br>   set spnick [string tolower [lindex $argz 0]]<br>   set spip [string tolower [lindex $argz 1]]<br>   set sptype [string tolower [lindex $argz 2]]<br>   set spreason [lrange $argz 3 end]<br><br>   switch -exact $sptype {<br>      inviting {<br>       putquick "MODE #mychan +b $spip"<br>        putkick #mychan $spnick $sptype $spreason<br>      }<br>      advertising {<br>       putquick "MODE #mychan +b $spip"<br>        putkick #mychan $spnick $sptype $spreason<br>      }<br>      default { return }<br>    }<br>}</div></blockquote><br>Deopped Bot File:<blockquote class="uncited"><div>bind msgm - *#* nospamiz<br>bind msgm - */server* nospamiz<br>bind msgm - *http://* nospamaz<br>bind msgm - *<a href="www" class="postlink">www</a>.* nospamaz<br>bind msgm - *.com* nospamaz<br>bind msgm - *.net* nospamaz<br>bind msgm - *.org* nospamaz<br><br>proc nospamiz { nick uhost hand text } {<br>   global botnick<br> <br>   if {[string compare $nick $botnick] == 0 } { return 0 }<br><br>   set ipban "*!*[string range $uhost [string first @ $uhost] e]"<br><br>   foreach channel [channels] {<br>      if {![validchan $channel]} { continue }<br>      putallbots "report $nick $ipban inviting Inviting detected"<br>   }<br><br>   return 1<br>}<br><br><br>proc nospamaz { nick uhost hand text } {<br>   global botnick<br><br>   if {[string compare $nick $botnick] == 0 } { return 0 }<br><br>   set ipban "*!*[string range $uhost [string first @ $uhost] e]"<br> <br>   foreach channel [channels] {<br>      if {![validchan $channel]} { continue }<br>      putallbots  "report $nick $ipban advertising Advertising detected"<br>   }<br><br>   return 1<br>}</div></blockquote>&lt;font size=-1&gt;[ This Message was edited by: z_one on 2002-05-13 04:32 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Sun May 12, 2002 4:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
