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

	<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>2006-01-17T00:55:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-01-17T00:55:27-04:00</updated>

		<published>2006-01-17T00:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59477#p59477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59477#p59477"/>
		<title type="html"><![CDATA[protect flood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59477#p59477"><![CDATA[
lol the proc is good <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> lol <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thx demond <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=7153">pilouuu</a> — Tue Jan 17, 2006 12:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-17T00:43:27-04:00</updated>

		<published>2006-01-17T00:43:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59475#p59475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59475#p59475"/>
		<title type="html"><![CDATA[protect flood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59475#p59475"><![CDATA[
noone could possibly know that but you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 17, 2006 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-01-17T00:42:04-04:00</updated>

		<published>2006-01-17T00:42:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59474#p59474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59474#p59474"/>
		<title type="html"><![CDATA[protect flood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59474#p59474"><![CDATA[
ok thx my variable<br><br>set pubflud 5:30<br><br>it good?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Tue Jan 17, 2006 12:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-17T00:15:12-04:00</updated>

		<published>2006-01-17T00:15:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59472#p59472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59472#p59472"/>
		<title type="html"><![CDATA[protect flood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59472#p59472"><![CDATA[
here's how to do that (code from my rssnews script) inside your public cmd proc:<div class="codebox"><p>Code: </p><pre><code>...variable pcount; variable pubfludif {[info exists pcount]} {set n [lindex $pcount 1]; incr nset ts [lindex $pcount 0]set pcount [list $ts $n]scan $pubflud {%[^:]:%s} maxr maxtif {$n &gt;= $maxr} {if {[unixtime] - $ts &lt;= $maxt} {return}set n 1; set ts [unixtime]}} {set n 1; set ts [unixtime]}set pcount [list $ts $n]...</code></pre></div>this thing will ignore any command requests beyond M:N (at most M requests in N seconds), set in the global variable <em class="text-italics">pubflood</em> (of course, you need to replace <em class="text-italics">variable</em> with <em class="text-italics">global</em> since you don't use namespaces)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 17, 2006 12:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-01-16T23:51:09-04:00</updated>

		<published>2006-01-16T23:51:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59471#p59471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59471#p59471"/>
		<title type="html"><![CDATA[protect flood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59471#p59471"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># databaseset dbfile "scripts/database.txt" # bindbind pub - !blg aleatory# set flood set fun(flood) 5:30 # Ignorer users after flood (0=no, 1=yes) : set fun(ignore) 1 # Yes?,tine mns : set fun(ignoretime) 1 # flags protect: set fun(ignflags) "fmnov|fmnov" proc fun:flood:init {} { global fun funflood set fun(floodnum) [lindex [split $fun(flood) :] 0] set fun(floodtime) [lindex [split $fun(flood) :] 1] set i [expr $fun(floodnum) - 1] while {$i &gt;= 0} {    set funflood($i) 0    incr i -1 } } fun:flood:init proc fun:flood {nick uhost} { global fun funflood botnick if {$fun(floodnum) == 0} {    return 0 } set i [expr $fun(floodnum) - 1] while {$i &gt;= 1} {    set funflood($i) $funflood([expr $i - 1])    incr i -1 } set funflood(0) [unixtime] if {[expr [unixtime] - $funflood([expr $fun(floodnum) - 1])] &lt;= $fun(floodtime)} {    if {$fun(ignore)} {       newignore [join [maskhost *!*[string trimleft $uhost ~]]] $botnick "Flood" $fun(ignoretime)    }    return 1 } {    return 0 } }proc aleatory {nick uhost hand chan arg} {if ![matchattr $nick $fun(ignflags) $channel] {    if {[fun:flood $nick $uhost]} {  global dbfile  set r [lindex [set d [split [read [set f [open $dbfile]]] \n]] [rand [llength $d]]]  puthelp "PRIVMSG $chan :$r $nick"  close $f } putlog "blg loaded"</code></pre></div><br>help me please <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> i am lost after <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> error<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Mon Jan 16, 2006 11:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-01-16T23:44:06-04:00</updated>

		<published>2006-01-16T23:44:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59470#p59470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59470#p59470"/>
		<title type="html"><![CDATA[protect flood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59470#p59470"><![CDATA[
hi<div class="codebox"><p>Code: </p><pre><code>set dbfile "scripts/database.txt" bind pub - !blg aleatory proc aleatory {nick uhost hand chan arg} {  global dbfile  set r [lindex [set d [split [read [set f [open $dbfile]]] \n]] [rand [llength $d]]]  puthelp "PRIVMSG $chan :$r $nick"  close $f }putlog "blg loaded"</code></pre></div>possible to add protection flood?<br><br>expl: <br>user&gt; !blg<br>bot&gt; blabla<br>user&gt; !blg<br>bot&gt; blabla<br>user&gt; !blg<br>bot&gt; blabla<br>user&gt; !blg<br>the bot say /notice user you have been ignoring for 1 mns and set ignore user for 1 mns<br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Mon Jan 16, 2006 11:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
