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

	<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>2005-06-26T12:45:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-06-26T12:45:11-04:00</updated>

		<published>2005-06-26T12:45:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51402#p51402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51402#p51402"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51402#p51402"><![CDATA[
dont work!! only kicks<br><br>putquick "KICK $chan $nick :$repeatmsg"<br>putuqick "MODE $chan +b $banmask"<br>timer $repeatbantime [list pushmode $chan -b $banmask]<br><br><br>putquick "KICK $dest $nick :$repeatmsg"<br>putuqick "MODE $dest +b $banmask"<br>timer $repeatbantime [list pushmode $dest -b $banmask]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Sun Jun 26, 2005 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-26T12:31:09-04:00</updated>

		<published>2005-06-26T12:31:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51401#p51401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51401#p51401"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51401#p51401"><![CDATA[
you have two <strong class="text-strong">newchanban</strong> lines. Replace the one I told you about with the lines I gave you, and the other one that says:<div class="codebox"><p>Code: </p><pre><code>newchanban $dest $banmask repeat $repeatmsg $repeatbantime</code></pre></div>with the same lines but instead of $chan use $dest.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jun 26, 2005 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-06-26T12:07:29-04:00</updated>

		<published>2005-06-26T12:07:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51400#p51400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51400#p51400"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51400#p51400"><![CDATA[
mh ok, but now the bot doesn`t ban anymore, only kicks :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Sun Jun 26, 2005 12:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-26T11:58:54-04:00</updated>

		<published>2005-06-26T11:58:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51399#p51399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51399#p51399"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51399#p51399"><![CDATA[
replace<div class="codebox"><p>Code: </p><pre><code>newchanban $chan $banmask repeat $repeatmsg $repeatbantime</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>putquick "KICK $chan $nick :$repeatmsg"putuqick "MODE $chan +b $banmask"timer $repeatbantime [list pushmode $chan -b $banmask]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jun 26, 2005 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-06-26T11:13:48-04:00</updated>

		<published>2005-06-26T11:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51396#p51396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51396#p51396"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51396#p51396"><![CDATA[
I found a better Script, this won't kick opped/voiced users, and has a bantimer. But i can remove the bans only over the Partyline, can you pls fix this, i want that ops to be able to remove the bans.<br><br><br><br># by Tris, 17jul96 (v2)<br># action added by fantomas 22Dec1997<br><br># Updated to v4 (17 November 1998) by slennox &lt;<a href="mailto:slenny@ozemail.com.au">slenny@ozemail.com.au</a>&gt;<br># About time someone updated this nice little script that more<br># people should be using <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br># - Updated for 1.3 bots (channel specific +o user no longer kicked)<br># - Added options to set number of kicks in how many seconds<br># and kick msg<br># - Added option to ban as well as kick<br>#<br># Fixed version (1 December 1998)<br># - repeatban set to 1 was generating 'invalid command name' error.<br># I'd forgotten to add 'fixbanmask' proc (stolen from subop*.tcl by<br># MHT &amp; YaZZ) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br>#<br># Updated to v4.1 (8 December 1998)<br># - Got rid of the fixbanmask crap and changed ban type to an IP ban <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br># Updated (25 November 2002) @/+ exempt<br># - Now this script won't kick opped/voiced users. I added an op/voice exempt to this script <br># originally made by Tris and modified by users listed above. (|am|) @ DALnet <a href="mailto:amit@amit.mu">amit@amit.mu</a> <br><br># Number of repeats before kicking<br>set repeatkick 3<br># In how many seconds<br>set repeattime 10<br># Kick msg<br>set repeatmsg "Stop Flooding"<br># Also ban?<br>set repeatban 1<br># How long the ban should last (in minutes)<br>set repeatbantime 10<br><br><br># Don't edit below unless you know what you're doing<br>bind pubm - * repeat_pubm<br>bind ctcp - ACTION repeat_action<br>bind nick - * repeat_nick<br><br>proc repeat_pubm {nick uhost hand chan text} {<br>  if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan]} {return 0}<br>  global repeat_last repeat_num repeatkick repeatmsg repeatban repeatbantime<br>  if [info exists repeat_last([set n [string tolower $nick]])] {<br>    if {[string compare [string tolower $repeat_last($n)] \<br>        [string tolower $text]] == 0} {<br>      if {[incr repeat_num($n)] &gt;= ${repeatkick}} {<br>        if {$repeatban} {<br>          set banmask "*!*[string range $uhost [string first "@" $uhost] end]"<br>          newchanban $chan $banmask repeat $repeatmsg $repeatbantime<br>        }<br>        putserv "KICK $chan $nick :$repeatmsg"<br>        unset repeat_last($n)<br>        unset repeat_num($n)<br>      }<br>      return<br>    }<br>  }<br>  set repeat_num($n) 1<br>  set repeat_last($n) $text<br>}<br><br>proc repeat_action {nick uhost hand dest keyword text} {<br>  if {[matchattr $nick mo|mo $dest] || [isop $nick $dest] || [isvoice $nick $dest] || [matchattr $nick o|o $dest]} {return 0} <br>  global botnick altnick repeat_last repeat_num repeatkick repeatmsg repeatban repeatbantime<br>  if [info exists repeat_last([set n [string tolower $nick]])] {<br>    if {[string compare [string tolower $repeat_last($n)] \<br>        [string tolower $text]] == 0} {<br>      if {[incr repeat_num($n)] &gt;= ${repeatkick}} {<br>        if {$repeatban} {<br>          set banmask "*!*[string range $uhost [string first "@" $uhost] end]"<br>          newchanban $dest $banmask repeat $repeatmsg $repeatbantime<br>        }<br>        putserv "KICK $dest $nick :$repeatmsg"<br>        unset repeat_last($n)<br>        unset repeat_num($n)<br>      }<br>      return<br>    }<br>  }<br>  set repeat_num($n) 1<br>  set repeat_last($n) $text<br>}<br><br>proc repeat_nick {nick uhost hand chan newnick} {<br>  if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan]} {return 0}<br>  global repeat_last repeat_num<br>  catch {set repeat_last([set nn [string tolower $newnick]]) \<br>         $repeat_last([set on [string tolower $nick]])}<br>  catch {unset repeat_last($on)}<br>  catch {set repeat_num($nn) $repeat_num($on)}<br>  catch {unset repeat_num($on)}<br>}<br><br>proc repeat_timr {} {<br>  global repeat_last repeattime<br>  catch {unset repeat_last}<br>  catch {unset repeat_num}<br>  utimer $repeattime repeat_timr<br>}<br><br>if ![regexp repeat_timr [utimers]] {     # thanks to jaym<br>  utimer $repeattime repeat_timr<br>}<br><br>putlog "repeat.tcl (@/+ exempt) by |am| originally made by Tris loaded"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Sun Jun 26, 2005 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awesomeawyeah]]></name></author>
		<updated>2005-06-26T09:13:29-04:00</updated>

		<published>2005-06-26T09:13:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51392#p51392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51392#p51392"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51392#p51392"><![CDATA[
<blockquote class="uncited"><div>dont work anymore :/ is this right?<br><br> putquick "MODE $chan +b *!*[string range $uhost [string first @$uhost]end]" -next<br>          putquick "KICK $chan $nick :Repeating" -next<br>          timer 10 [list pushmode $chan -b $banmask]</div></blockquote>By the looks of this, try this it is more better:<br><div class="codebox"><p>Code: </p><pre><code>set banmask "*!*[lindex [split $uhost @] 1]"putquick "MODE $chan +b $banmask" -nextputquick "KICK $chan $nick :Repeating" -nexttimer 10 [list pushmode $chan -b $banmask]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6407">awesomeawyeah</a> — Sun Jun 26, 2005 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-26T09:12:16-04:00</updated>

		<published>2005-06-26T09:12:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51391#p51391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51391#p51391"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51391#p51391"><![CDATA[
There is no $banmask in your code, instead use:<div class="codebox"><p>Code: </p><pre><code>putquick "MODE $chan +b [set banmask *!*[string range $uhost [string first @ $uhost] end]]" -next putquick "KICK $chan $nick :Repeating" -next timer 10 [list pushmode $chan -b $banmask]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jun 26, 2005 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-06-26T08:39:20-04:00</updated>

		<published>2005-06-26T08:39:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51384#p51384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51384#p51384"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51384#p51384"><![CDATA[
dont work anymore :/ is this right?<br><br> putquick "MODE $chan +b *!*[string range $uhost [string first @$uhost]end]" -next<br>          putquick "KICK $chan $nick :Repeating" -next<br>          timer 10 [list pushmode $chan -b $banmask]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Sun Jun 26, 2005 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-25T20:02:00-04:00</updated>

		<published>2005-06-25T20:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51378#p51378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51378#p51378"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51378#p51378"><![CDATA[
Currently in that script there is no ban time. If you want the ban to be removed after 10 minutes then add the following line:<div class="codebox"><p>Code: </p><pre><code>timer 10 [list pushmode $chan -b $banmask]</code></pre></div>after the kick line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jun 25, 2005 8:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-06-25T19:00:23-04:00</updated>

		<published>2005-06-25T19:00:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51374#p51374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51374#p51374"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51374#p51374"><![CDATA[
how can i change the bantime? i want only 10 min. bans<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Sat Jun 25, 2005 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-19T12:34:32-04:00</updated>

		<published>2005-04-19T12:34:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48311#p48311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48311#p48311"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48311#p48311"><![CDATA[
For such kicks, putserv is enough IMO. I use putquick -next for locking on floods only.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 19, 2005 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-19T11:38:24-04:00</updated>

		<published>2005-04-19T11:38:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48307#p48307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48307#p48307"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48307#p48307"><![CDATA[
Well the -next option only pushes it up the queue, so its like dead fast. Also similar results can be achieved with the undocumented 'putdccraw' which sends a string of text directly to the server, without any queue, though I've seen people complaining theres a queue for that too, beleive me my bot gets excess flood with putquick -next sometimes, heh. I've tested both putquick with -next and putdccraw, they are basically at the same speed.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Apr 19, 2005 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-04-19T11:23:35-04:00</updated>

		<published>2005-04-19T11:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48306#p48306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48306#p48306"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48306#p48306"><![CDATA[
Great! It bans and kicks within a second. 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=5171">Nucleus</a> — Tue Apr 19, 2005 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-19T09:51:11-04:00</updated>

		<published>2005-04-19T09:51:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48305#p48305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48305#p48305"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48305#p48305"><![CDATA[
I don't think it's neseccary to use -next here, a normal putquick is fast enough.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 19, 2005 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-19T09:46:22-04:00</updated>

		<published>2005-04-19T09:46:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48304#p48304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48304#p48304"/>
		<title type="html"><![CDATA[Repeat protection script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48304#p48304"><![CDATA[
Replace this:<br><div class="codebox"><p>Code: </p><pre><code> set banmask "*!*[string range $uhost [string first "@" $uhost] end]" pushmode $chan +b $banmask puthelp "KICK $chan $nick :Repeating"</code></pre></div><br>with this:<br><div class="codebox"><p>Code: </p><pre><code> putquick "MODE $chan +b *!*[string range $uhost [string first @ $uhost] end]" -next putquick "KICK $chan $nick :Repeating" -next</code></pre></div>Then you might be able to see some difference in the speed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Apr 19, 2005 9:46 am</p><hr />
]]></content>
	</entry>
	</feed>
