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

	<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>2010-09-17T09:52:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-09-17T09:52:16-04:00</updated>

		<published>2010-09-17T09:52:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94424#p94424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94424#p94424"/>
		<title type="html"><![CDATA[Re: Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94424#p94424"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * join:banspamproc join:banspam {nick host hand chan} {  setudef flag spamwords if {![channel get $chan +spamwords]} {return}          &lt;snip&gt;}bind pubm - * pubm:banspanproc pubm:banspam {nick host hand chan text} { setudef flag spamwords if {![channel get $chan +spamwords]} {return}          &lt;snip&gt;</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Fri Sep 17, 2010 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonetto]]></name></author>
		<updated>2010-09-15T18:39:16-04:00</updated>

		<published>2010-09-15T18:39:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94398#p94398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94398#p94398"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94398#p94398"><![CDATA[
Nobody can help me? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11128">simonetto</a> — Wed Sep 15, 2010 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonetto]]></name></author>
		<updated>2010-09-08T12:05:56-04:00</updated>

		<published>2010-09-08T12:05:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94275#p94275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94275#p94275"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94275#p94275"><![CDATA[
no, I do not work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11128">simonetto</a> — Wed Sep 08, 2010 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonetto]]></name></author>
		<updated>2010-09-07T11:27:40-04:00</updated>

		<published>2010-09-07T11:27:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94247#p94247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94247#p94247"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94247#p94247"><![CDATA[
ah thanks, but what position I put the string?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11128">simonetto</a> — Tue Sep 07, 2010 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2010-09-07T11:03:29-04:00</updated>

		<published>2010-09-07T11:03:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94242#p94242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94242#p94242"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94242#p94242"><![CDATA[
A simple 'setudef flag spamwords' and<div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan spamwords]} return</code></pre></div>at join and pubm processes, then '.chanset #channel +spamwords' from party-line should do the trick.<br><br>PS: You can replace 'spamwords' with whatever you wish, as long as isn't already used. But if you do want to use an existing channel flag then don't add the 'setudef' part.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Sep 07, 2010 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonetto]]></name></author>
		<updated>2010-09-07T10:27:29-04:00</updated>

		<published>2010-09-07T10:27:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94239#p94239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94239#p94239"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94239#p94239"><![CDATA[
Hello. The script is good but I would improve it even more to my needs.<br><br>You can do so that I can decide on which chan enable it?<br>I hope this is possible. Thanks <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=11128">simonetto</a> — Tue Sep 07, 2010 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-24T18:27:35-04:00</updated>

		<published>2010-08-24T18:27:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94095#p94095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94095#p94095"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94095#p94095"><![CDATA[
You're very welcome. <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=11101">Luminous</a> — Tue Aug 24, 2010 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonetto]]></name></author>
		<updated>2010-08-24T14:01:09-04:00</updated>

		<published>2010-08-24T14:01:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94089#p94089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94089#p94089"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94089#p94089"><![CDATA[
Thank you.<br>I just tried and it works wonderfully.<br>Thank you very much really <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=11128">simonetto</a> — Tue Aug 24, 2010 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-24T13:30:32-04:00</updated>

		<published>2010-08-24T13:30:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94087#p94087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94087#p94087"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94087#p94087"><![CDATA[
Enjoy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code># ban-spammers.tcl v1.0 by FireEgl@EFNet &lt;FireEgl@LinuxFan.com&gt; - 4-19-00# Description:# Bans anyone not known to the bot if they join a channel# and the first thing they say contains a web link.## It could be done better I guess..# Words that it checks for:set spamwords { http:// www. .com .net .org .nu .ca .uk .edu .it {web page} site}# Time, in minutes that the ban will last:# (43200 = 1 month)set spambantime 43200# Set Global ban (1), or Channel ban (2), or just a kick (3)?set spambantype 1bind join - * join:banspamproc join:banspam {nick host hand chan} { global banspam   if {![validuser $hand]} { set banspam($nick) 0 }}bind pubm - * pubm:banspamproc pubm:banspam {nick host hand chan msg} { global banspam spamwords spambantime spambantype   if {[info exists banspam($nick)]} {      if {(([getchanidle $nick $chan] == 0) &amp;&amp; ($banspam($nick) == 0))} {         foreach s $spamwords {            if {[lsearch -glob "$msg" "*$s*"] != -1} {              set host [getchanhost $nick $chan]               switch $spambantype {                  "1" { putserv "KICK $chan $nick :No Spam!"                        newban *!*@[lrange [split $host @] 1 end] Ban-Spam "$msg" $spambantime                  }                  "2" { putserv "KICK $chan $nick :No Spam!"                        newchanban $chan  *!*@[lrange [split $host @] 1 end]  Ban-Spam "$msg" $spambantime                  }                  "3" { puthelp "KICK $chan $nick :No Spam!" }                  "default" { putlog "$nick@$chan Just spammed the channel with: $msg" }               }               break            }         }      }      unset banspam($nick)   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Tue Aug 24, 2010 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonetto]]></name></author>
		<updated>2010-08-24T00:34:49-04:00</updated>

		<published>2010-08-24T00:34:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94080#p94080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94080#p94080"/>
		<title type="html"><![CDATA[Tcl Ban-Spammer only for host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94080#p94080"><![CDATA[
Hello. I Use the following tcl with satisfaction, but there is a point I would change: simply the way to ban.<br><br>Currently bans like this: *!*Tiscali@*.retail.telecomitalia.it<br><br>I would like to ban in that way: *!*@host221-206-dynamic.9-79-r.retail.telecomitalia.it<br>In short I want cha ban only the host.<br><br>I place the tcl, hoping you can help me.<br>Thanks in advance.<br>Simone<br><br><div class="codebox"><p>Code: </p><pre><code># ban-spammers.tcl v1.0 by FireEgl@EFNet &lt;FireEgl@LinuxFan.com&gt; - 4-19-00# Description:# Bans anyone not known to the bot if they join a channel# and the first thing they say contains a web link.## It could be done better I guess..# Words that it checks for:set spamwords { http:// www. .com .net .org .nu .ca .uk .edu .it {web page} site}# Time, in minutes that the ban will last:# (43200 = 1 month)set spambantime 43200# Set Global ban (1), or Channel ban (2), or just a kick (3)?set spambantype 1bind join - * join:banspamproc join:banspam {nick host hand chan} { global banspam   if {![validuser $hand]} { set banspam($nick) 0 }}bind pubm - * pubm:banspamproc pubm:banspam {nick host hand chan msg} { global banspam spamwords spambantime spambantype   if {[info exists banspam($nick)]} {      if {(([getchanidle $nick $chan] == 0) &amp;&amp; ($banspam($nick) == 0))} {         foreach s $spamwords {            if {[lsearch -glob "$msg" "*$s*"] != -1} {               switch $spambantype {                  "1" { putserv "KICK $chan $nick :No Spam!"                        newban [string trimleft [maskhost [getchanhost $nick $chan]] ~] Ban-Spam "$msg" $spambantime                  }                  "2" { putserv "KICK $chan $nick :No Spam!"                        newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] Ban-Spam "$msg" $spambantime                  }                  "3" { puthelp "KICK $chan $nick :No Spam!" }                  "default" { putlog "$nick@$chan Just spammed the channel with: $msg" }               }               break            }         }      }      unset banspam($nick)   }}# unset the var when they leave:bind kick - * kick:banspamproc kick:banspam {nick host hand chan target reason} { global banspam   catch { unset banspam($nick) }}bind part - * part:banspamproc part:banspam {nick host hand chan {reason ""}} { global banspam   catch { unset banspam($nick) }}bind sign - * sign:banspamproc sign:banspam {nick host hand chan reason} { global banspam   catch { unset banspam($nick) }}bind splt - * splt:banspamproc splt:banspam {nick host hand chan} { global banspam   catch { unset banspam($nick) }}putlog "\002Ban-Spammers.tcl\002 v 1.0 by FireEgl@EFNet caricata con successo!"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11128">simonetto</a> — Tue Aug 24, 2010 12:34 am</p><hr />
]]></content>
	</entry>
	</feed>
