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

	<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-24T22:23:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2005-06-24T22:23:40-04:00</updated>

		<published>2005-06-24T22:23:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51334#p51334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51334#p51334"/>
		<title type="html"><![CDATA[Fixing this repeat script to work on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51334#p51334"><![CDATA[
Thank you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I love you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Fri Jun 24, 2005 10:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-24T12:44:42-04:00</updated>

		<published>2005-06-24T12:44:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51314#p51314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51314#p51314"/>
		<title type="html"><![CDATA[Fixing this repeat script to work on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51314#p51314"><![CDATA[
add<div class="codebox"><p>Code: </p><pre><code>setudef flag repeats</code></pre></div>in the script, perhaps under the "bind nick" line.<br>then replace<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan]} {return 0}</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan] || ![channel get $chan repeats]} {return 0}</code></pre></div>now all you have to do is <strong class="text-strong">.chanset #channel +repeats</strong> in order to enable this script on a channel.<br><br>btw, you should've posted this in the Script Support &amp; Releases forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 24, 2005 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2005-06-24T11:37:13-04:00</updated>

		<published>2005-06-24T11:37:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51313#p51313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51313#p51313"/>
		<title type="html"><![CDATA[Fixing this repeat script to work on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51313#p51313"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Number of repeats before kickingset repeatkick 3# In how many secondsset repeattime 15# Kick msgset repeatmsg "You have gotten banned for repeating more than 3 lines in 15 seconds. 20 Minute Ban"# Also ban?set repeatban 1# How long the ban should last (in minutes)set repeatbantime 20# Don't edit below unless you know what you're doingbind pubm - * repeat_pubmbind ctcp - ACTION repeat_actionbind nick - * repeat_nickproc repeat_pubm {nick uhost hand chan text} {  if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan]} {return 0}  global repeat_last repeat_num repeatkick repeatmsg repeatban repeatbantime  if [info exists repeat_last([set n [string tolower $nick]])] {    if {[string compare [string tolower $repeat_last($n)] \        [string tolower $text]] == 0} {      if {[incr repeat_num($n)] &gt;= ${repeatkick}} {        if {$repeatban} {          set banmask "*!*[string range $uhost [string first "@" $uhost] end]"          newchanban $chan $banmask repeat $repeatmsg $repeatbantime        }        putserv "KICK $chan $nick :$repeatmsg"        unset repeat_last($n)        unset repeat_num($n)      }      return    }  }  set repeat_num($n) 1  set repeat_last($n) $text}proc repeat_action {nick uhost hand dest keyword text} {  if {[matchattr $nick mo|mo $dest] || [isop $nick $dest] || [isvoice $nick $dest] || [matchattr $nick o|o $dest]} {return 0}   global botnick altnick repeat_last repeat_num repeatkick repeatmsg repeatban repeatbantime  if [info exists repeat_last([set n [string tolower $nick]])] {    if {[string compare [string tolower $repeat_last($n)] \        [string tolower $text]] == 0} {      if {[incr repeat_num($n)] &gt;= ${repeatkick}} {        if {$repeatban} {          set banmask "*!*[string range $uhost [string first "@" $uhost] end]"          newchanban $dest $banmask repeat $repeatmsg $repeatbantime        }        putserv "KICK $dest $nick :$repeatmsg"        unset repeat_last($n)        unset repeat_num($n)      }      return    }  }  set repeat_num($n) 1  set repeat_last($n) $text}proc repeat_nick {nick uhost hand chan newnick} {  if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan]} {return 0}  global repeat_last repeat_num  catch {set repeat_last([set nn [string tolower $newnick]]) \         $repeat_last([set on [string tolower $nick]])}  catch {unset repeat_last($on)}  catch {set repeat_num($nn) $repeat_num($on)}  catch {unset repeat_num($on)}}proc repeat_timr {} {  global repeat_last repeattime  catch {unset repeat_last}  catch {unset repeat_num}  utimer $repeattime repeat_timr}if ![regexp repeat_timr [utimers]] {     # thanks to jaym  utimer $repeattime repeat_timr}putlog "Repeat flood by es loaded."</code></pre></div>How would I define certain channels for this script to load on?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Fri Jun 24, 2005 11:37 am</p><hr />
]]></content>
	</entry>
	</feed>
