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

	<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>2005-01-19T17:05:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sibelius]]></name></author>
		<updated>2005-01-19T17:05:26-04:00</updated>

		<published>2005-01-19T17:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45548#p45548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45548#p45548"/>
		<title type="html"><![CDATA[How to Ignore a trigger from a specific user for 3mns ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45548#p45548"><![CDATA[
User,<br><br>Many Thanks for your very complete solution !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5903">Sibelius</a> — Wed Jan 19, 2005 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-01-19T09:21:30-04:00</updated>

		<published>2005-01-19T09:21:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45537#p45537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45537#p45537"/>
		<title type="html"><![CDATA[something like this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45537#p45537"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc throttled {id seconds} {global throttleif {[info exists throttle($id)]&amp;&amp;$throttle($id)&gt;[clock sec]} {set id 1} {set throttle($id) [expr {[clock sec]+$seconds}]set id 0}}# delete expired entries every 10 minutesbind time - ?0* throttledCleanupproc throttledCleanup args {global throttleset now [clock sec]foreach {id time} [array get throttle] {if {$time&lt;=$now} {unset throttle($id)}}}</code></pre></div>...or using timers to do the cleanup<div class="codebox"><p>Code: </p><pre><code>proc throttled {id time} {global throttledif {[info exists throttled($id)]} {return 1} {set throttled($id) [clock sec]utimer $time [list unset throttled($id)]return 0}}</code></pre></div>example limiting usage by same user@host on a specific channel<br>(the id part can be what ever you like of course)<div class="codebox"><p>Code: </p><pre><code>bind pub n !test pub:testproc pub:test {n u h c a} {if {[throttled $u,$c 30]} {puthelp "PRIVMSG $c :$n: denied. (wait or try a different channel)"} else {puthelp "PRIVMSG $c :$n: allowed (wait 30 seconds)"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jan 19, 2005 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sibelius]]></name></author>
		<updated>2005-01-19T06:54:39-04:00</updated>

		<published>2005-01-19T06:54:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45534#p45534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45534#p45534"/>
		<title type="html"><![CDATA[How to Ignore a trigger from a specific user for 3mns ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45534#p45534"><![CDATA[
Tks MeTroiD.<br><br>In fact, I dont want to ignore user completely.<br>I would need to only ignore his ctcp search trigger for some time but allow him to do other things with the bot.<br><br>I guess your solution totally ignore the user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5903">Sibelius</a> — Wed Jan 19, 2005 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-01-19T04:37:06-04:00</updated>

		<published>2005-01-19T04:37:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45530#p45530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45530#p45530"/>
		<title type="html"><![CDATA[How to Ignore a trigger from a specific user for 3mns ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45530#p45530"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>newignore hostmask creator comment ?lifetime?</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Jan 19, 2005 4:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sibelius]]></name></author>
		<updated>2005-01-18T23:32:04-04:00</updated>

		<published>2005-01-18T23:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45527#p45527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45527#p45527"/>
		<title type="html"><![CDATA[How to Ignore a trigger from a specific user for 3mns ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45527#p45527"><![CDATA[
Hello.<br>I run a tcl script which answers users ctcp triggers.<br>I wonder how to make the script ignore a trigger from one specific user for a 3 mns period.<br><br>Thanks in advance.<br><br>Sibelius<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5903">Sibelius</a> — Tue Jan 18, 2005 11:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
