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

	<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>2022-11-24T11:45:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-11-24T11:45:10-04:00</updated>

		<published>2022-11-24T11:45:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111531#p111531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111531#p111531"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111531#p111531"><![CDATA[
Just add the nick in the key of Xthrottled. That is what I pointed previously.<div class="codebox"><p>Code: </p><pre><code># throttle time in secondsset Xthrottled(time) 10proc throttlecheckerX {nick chan} {   global Xthrottled   if {[info exists Xthrottled($chan,$nick)]} {      return 1   } else {      set Xthrottled($chan,$nick) [utimer $::Xthrottled(time) [list unset Xthrottled($chan,$nick)]]      return 0   }} bind pub - !love fun_give-loveproc fun_give-love {nick uhost hand chan text} {     if {[throttlecheckerX $nick $chan]} { return 0 }         set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]         set items [split $text]     if {[llength $items] &lt; 1 } { putnow "notice $nick :Syntax\: !love nick" ; return }          set lovenick [lindex [split $text] 0]         putserv "privmsg $chan :\001ACTION  \002\00305,00 $nick \002\00312 gives \00306\002 $lovenick \002\00307 love \003\017"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Nov 24, 2022 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r6gear]]></name></author>
		<updated>2022-11-24T10:14:57-04:00</updated>

		<published>2022-11-24T10:14:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111529#p111529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111529#p111529"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111529#p111529"><![CDATA[
it's posibile to add a option every user to have let's say 1 shoot every 30 seconds?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12990">r6gear</a> — Thu Nov 24, 2022 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-24T00:26:00-04:00</updated>

		<published>2022-11-24T00:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111526#p111526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111526#p111526"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111526#p111526"><![CDATA[
That's true i overlooked that thanks for pointing out CrazyCat <img alt="👍" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f44d.svg"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Nov 24, 2022 12:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r6gear]]></name></author>
		<updated>2022-11-23T19:25:29-04:00</updated>

		<published>2022-11-23T19:25:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111525#p111525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111525#p111525"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111525#p111525"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code># throttle time in secondsset Xthrottled(time) 10proc throttlecheckerX {nick chan} {  global Xthrottled  if {[info exists Xthrottled($chan)]} {       return 1} else {set Xthrottled($chan) [utimer $::Xthrottled(time) [list unset Xthrottled($chan)]]return 0}} bind pub - !love fun_give-loveproc fun_give-love {nick uhost hand chan text} {     if {[throttlecheckerX $nick $chan]} { return 0 }         set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]         set items [split $text]     if {[llength $items] &lt; 1 } { putnow "notice $nick :Syntax\: !love nick" ; return }          set lovenick [lindex [split $text] 0]         putserv "privmsg $chan :\001ACTION  \002\00305,00 $nick \002\00312 gives \00306\002 $lovenick \002\00307 love \003\017"}</code></pre></div></div></blockquote>Thank you for helping! !beer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12990">r6gear</a> — Wed Nov 23, 2022 7:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-11-23T19:01:52-04:00</updated>

		<published>2022-11-23T19:01:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111524#p111524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111524#p111524"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111524#p111524"><![CDATA[
@simo : so the command could only be used once every 10s on the chan, whoever use it ?<br>Why throttlecheckerX has nick as argument if it's not used ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Nov 23, 2022 7:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-11-24T08:53:01-04:00</updated>

		<published>2022-11-23T16:15:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111523#p111523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111523#p111523"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111523#p111523"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># throttle time in secondsset Xthrottled(time) 10proc throttlecheckerX {chan} {  global Xthrottled  if {[info exists Xthrottled($chan)]} {       return 1} else {set Xthrottled($chan) [utimer $::Xthrottled(time) [list unset Xthrottled($chan)]]return 0}} bind pub - !love fun_give-loveproc fun_give-love {nick uhost hand chan text} {     if {[throttlecheckerX $chan]} { return 0 }         set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]         set items [split $text]     if {[llength $items] &lt; 1 } { putnow "notice $nick :Syntax\: !love nick" ; return }          set lovenick [lindex [split $text] 0]         putserv "privmsg $chan :\001ACTION  \002\00305,00 $nick \002\00312 gives \00306\002 $lovenick \002\00307 love \003\017"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Nov 23, 2022 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r6gear]]></name></author>
		<updated>2022-11-23T09:31:34-04:00</updated>

		<published>2022-11-23T09:31:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111521#p111521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111521#p111521"/>
		<title type="html"><![CDATA[adding flood protections to this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111521#p111521"><![CDATA[
i want to add flood protection to this script. if a user want can user !love !love ...etc and floods the channel.<br>Can anyoane help me adding ? thank you<br><br>bind pub - !love fun_give-love<br><br>proc fun_give-love {nick uhost hand chan text} {<br> putserv "privmsg $chan :\001ACTION Lui 5$nick gives 5$text love!))"<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12990">r6gear</a> — Wed Nov 23, 2022 9:31 am</p><hr />
]]></content>
	</entry>
	</feed>
