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

	<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-22T20:27:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-11-22T20:27:32-04:00</updated>

		<published>2004-11-22T20:27:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43010#p43010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43010#p43010"/>
		<title type="html"><![CDATA[Need help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43010#p43010"><![CDATA[
I think it would be best to incorporate this "flood protection" in the actual proc giving the hints... Try this (not tested, of course <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">)<div class="codebox"><p>Code: </p><pre><code># add this at the top of the hint proc:global hintFloodscan $hintFlood(ratio) %i:%i times timeset now [clock sec]if {[info exists hintFlood($uhost)]} {set i 0foreach ts $hintFlood($uhost) {if {$ts&gt;$now} break; incr i}if {$i} {set hintFlood($uhost) [lrange $hintFlood($uhost) $i end]} elseif {[llength $hintFlood($uhost)]==$times} {puthelp "NOTICE $nick :Calm down.";# or ban or whatever...return 1}}lappend hintFlood($uhost) [incr now $time]# outside the proc: (times:seconds)set hintFlood(ratio) 3:60</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Nov 22, 2004 8:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kimmi]]></name></author>
		<updated>2004-11-22T20:00:15-04:00</updated>

		<published>2004-11-22T20:00:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43009#p43009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43009#p43009"/>
		<title type="html"><![CDATA[Need help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43009#p43009"><![CDATA[
Hello<br>Im running a quiz channel. But user sometime give me a hard time.<br>When some users dont know what the answer is, they can type "!hint" and bot gives them a hint. But to often user dont know when to stop, and channel looks like this:<br>!hint<br>!hint<br>!hint<br>!hint<br>!hint<br><br>So Im looking for a script that tempbans users with a message that they type to many "!hint" and get banned for like 3min.<br>This script would allow like, 3 * !hint every minut or so, from each user.<br><br>Is there any scripts like this, or anyone have the knowlegde to make sutch?<br><br>Thanx<br>Kimmi<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3560">Kimmi</a> — Mon Nov 22, 2004 8:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
