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

	<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>2009-07-24T13:01:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-07-24T13:01:18-04:00</updated>

		<published>2009-07-24T13:01:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89641#p89641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89641#p89641"/>
		<title type="html"><![CDATA[Command Flood Protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89641#p89641"><![CDATA[
In that case, refer to my first post (<a href="http://forum.egghelp.org/viewtopic.php?t=9009&amp;highlight=throttle" class="postlink">of this link</a>). If you dont want to take the time to add the "throttle" proc to your scripts, you can try using something like this <div class="codebox"><p>Code: </p><pre><code>set tf_commands ".dwhois,!dwhois,.8ball,!8ball"set tf_throttle "30"set tf_ignoretime "5"set tf_warning "command/trigger flood detected! You are not being ignored."proc tf_check:pubm {nick host handle channel text} { global tf_commands tf_ignoretime tf_throttle tf_warning botnick  foreach command [split $tf_commands ,] {   if {[string match [string tolower [lindex [split $text] 0]] $command]} {    if {[throttled $host,$channel $tf_throttle]} {     if {$tf_warning != ""} {      puthelp "PRIVMSG $channel :$tf_warning"     }     newignore [maskhost $host] $botnick "command/trigger flood detected" $tf_ignoretime     return    }   }  }}proc throttled {id time} {    global throttled    if {[info exists throttled($id)]} {       return 1    } {       set throttled($id) [clock sec]       utimer $time [list unset throttled($id)]       return 0    } }bind pubm -|- "*" tf_check:pubm</code></pre></div> As for <blockquote class="uncited"><div>One of them for example is a counter join script. This counts how many joins there has been and sents a notice to the user telling them they are X person to join. <br><br>If someone keeps cycling the channel this will flood the bot and lag it, I want to prevent this from happening...</div></blockquote> I would contact the owner of the script and ask them to add a feature to prevent this, or look for a fly-by/join-part flooding script in the TCL Archive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Jul 24, 2009 1:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jue]]></name></author>
		<updated>2009-07-23T13:00:55-04:00</updated>

		<published>2009-07-23T13:00:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89634#p89634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89634#p89634"/>
		<title type="html"><![CDATA[Command Flood Protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89634#p89634"><![CDATA[
I have a eggdrop with many scripts...<br><br>One of them for example is a counter join script. This counts how many joins there has been and sents a notice to the user telling them they are X person to join.<br><br>If someone keeps cycling the channel this will flood the bot and lag it, I want to prevent this from happening...<br><br>Other commands are !8ball and .dwhois ect...<br><br>Basically ignore ANY commands that are flooded... So after 4 times of ANY of the commands the bot will ignore all commands for about 30 seconds and message the channel with a configurable message.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10733">Jue</a> — Thu Jul 23, 2009 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-07-23T12:42:11-04:00</updated>

		<published>2009-07-23T12:42:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89633#p89633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89633#p89633"/>
		<title type="html"><![CDATA[Command Flood Protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89633#p89633"><![CDATA[
are you talking about eggdrop's commands? like the dcc/msg commands. eggdrop.conf has settings that prevent flooding of these commands and settings to ignore users/people that do. As for the sending a notice for this, you could use the <strong class="text-strong">flud</strong> bind and creat a proc to do this <blockquote class="uncited"><div>FLUD (stackable)<br><br>bind flud &lt;flags&gt; &lt;type&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;type&gt; &lt;channel&gt;<br><br>Description: any floods detected through the flood control settings (like 'flood-ctcp') are sent here before processing. If the proc returns 1, no further action is taken on the flood; if the proc returns 0, the bot will do its normal "punishment" for the flood. The flood types are: pub, msg, join, or ctcp (and can be masked to "*" for the bind); flags are ignored.<br><br>Module: server</div></blockquote><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"><br><a href="http://www.eggheads.org/support/egghtml/1.6.19/egg-core.html#sect1f" class="postlink">set dcc-flood-thr 3</a> - Specify here the number of lines to accept from a user on the partyline within 1 second before they are considered to be flooding and therefore get booted. (for dcc flood control)<br><a href="http://www.eggheads.org/support/egghtml/1.6.19/mod-server.html" class="postlink">set flood-msg 5:60</a> - Set here how many msgs in how many seconds from one host constitutes a flood. If you set this to 0:0, msg flood protection will be disabled. (message flood control)<br><a href="http://www.eggheads.org/support/egghtml/1.6.19/mod-server.html" class="postlink">set trigger-on-ignore 0</a> - If you want Eggdrop to trigger binds for ignored users, set this to 1. (to enable ignoring flooders)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Jul 23, 2009 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jue]]></name></author>
		<updated>2009-07-22T17:54:51-04:00</updated>

		<published>2009-07-22T17:54:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89629#p89629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89629#p89629"/>
		<title type="html"><![CDATA[Command Flood Protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89629#p89629"><![CDATA[
Okay, that doesn't exactly do what I want...<br><br>A few more things I want the script to do:<br><br>Send a notice to the user it ignores. (With the ability to change the message via a small config at the top of the script)<br>Make the time for the ignore to be kept in place configurable.<br>And NOT ignore the bot master. (Configurable?)<br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10733">Jue</a> — Wed Jul 22, 2009 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-07-22T13:32:42-04:00</updated>

		<published>2009-07-22T13:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89627#p89627</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89627#p89627"/>
		<title type="html"><![CDATA[Command Flood Protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89627#p89627"><![CDATA[
see <a href="http://forum.egghelp.org/viewtopic.php?t=9009&amp;highlight=throttle" class="postlink">This post</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Wed Jul 22, 2009 1:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jue]]></name></author>
		<updated>2009-07-21T13:50:51-04:00</updated>

		<published>2009-07-21T13:50:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89617#p89617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89617#p89617"/>
		<title type="html"><![CDATA[Command Flood Protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89617#p89617"><![CDATA[
I need a script that stops people from flooding the bot with commands.<br><br>Say, the bot will only allow a certain person to do 3 commands every 5 seconds or something.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10733">Jue</a> — Tue Jul 21, 2009 1:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
