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

	<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>2004-11-19T08:18:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[qwek]]></name></author>
		<updated>2004-11-19T08:18:35-04:00</updated>

		<published>2004-11-19T08:18:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42883#p42883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42883#p42883"/>
		<title type="html"><![CDATA[repeat code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42883#p42883"><![CDATA[
mr hikaro: you're a tcl scripter and i was saw your tcl script at egghelp/tcl archieve that you've made. then why you still asking about those codes for? <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=5465">qwek</a> — Fri Nov 19, 2004 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-03-21T15:23:26-04:00</updated>

		<published>2004-03-21T15:23:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34838#p34838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34838#p34838"/>
		<title type="html"><![CDATA[repeat code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34838#p34838"><![CDATA[
hello anyone can added code from this tcl<br>i want the tcl to kick repeat, but with warning... after ppls repeat 3 times it will give warning (without ban) than if they repeat again 3 times they will get ban for 5 minute.<br>this is the code i have for repeat<blockquote class="uncited"><div># Number of repeats before kicking<br>set repeatkick 3<br># In how many seconds<br>set repeattime 10<br># Kick msg<br>set repeatmsg "No Repeat"<br># Also ban?<br>set repeatban 1<br># How long the ban should last (in minutes)<br>set repeatbantime 1<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 botnick<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 botnick<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>      }<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 hikaro<br>  utimer $repeattime repeat_timr<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Sun Mar 21, 2004 3:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
