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

	<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>2003-11-04T13:17:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-11-04T13:17:55-04:00</updated>

		<published>2003-11-04T13:17:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29488#p29488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29488#p29488"/>
		<title type="html"><![CDATA[Need Help With A Public CMD.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29488#p29488"><![CDATA[
This should do the trick..<div class="codebox"><p>Code: </p><pre><code># How many !rules in how many seconds =&gt; stop responding.set myrules 3:5:10bind pub - !rules pub:rulesbind part - * rules:partproc pub:rules {nick host hand chan text} {   global rules  set called [lindex [split $::myrules ":"] 0]  set insec [lindex [split $::myrules ":"] 1]  set reset [lindex [split $::myrules ":"] 2]  if {![info exists rules([strlwr $chan])]} {    set rules([strlwr $chan]) 0  }  incr rules([strlwr $chan])  utimer $reset [list rulesreset $chan]  if {$rules([strlwr $chan]) &gt;= $called} {    return  }  putserv "Notice $nick :Rule 1.."   putserv "Notice $nick :Rule 2.."   putserv "Notice $nick :etc...." }proc rulesreset {chan} {  global rules  incr rules([strlwr $chan]) -1  return}proc rules:part {nick uhost hand chan msg} {  global rules  if {$nick != $::botnick} {    return  }  foreach arr_part [array names rules] {    if {[string match [strlwr $chan] $arr_part]} {      array unset rules [strlwr $chan]    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 04, 2003 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2003-11-04T12:22:37-04:00</updated>

		<published>2003-11-04T12:22:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29482#p29482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29482#p29482"/>
		<title type="html"><![CDATA[Need Help With A Public CMD.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29482#p29482"><![CDATA[
Hi, I need help again please. Can Anyone tell me how to make The bot<br>stop accepting the !rules cmd after The command was issued<br>3 times in 10seconds?<br><br><br>This is the code that needs changing.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !rules pub_rulesproc pub_rules { nick host hand chan testes} {putserv "Notice $nick :Rule 1.."putserv "Notice $nick :Rule 2.."putserv "Notice $nick :etc...."return 1 }</code></pre></div>Please Help. <br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Tue Nov 04, 2003 12:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
