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

	<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>2012-04-12T14:06:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2012-04-12T14:06:56-04:00</updated>

		<published>2012-04-12T14:06:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99183#p99183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99183#p99183"/>
		<title type="html"><![CDATA[need flood protection for troll.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99183#p99183"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=17078" class="postlink">http://forum.egghelp.org/viewtopic.php?t=17078</a><br><br>Enjoy <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=9145">spithash</a> — Thu Apr 12, 2012 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2012-02-03T09:50:58-04:00</updated>

		<published>2012-02-03T09:50:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98699#p98699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98699#p98699"/>
		<title type="html"><![CDATA[need flood protection for troll.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98699#p98699"><![CDATA[
So lets wait untill spithash modify it properly.<br>Nobody can do it better then spithash.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Fri Feb 03, 2012 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PrE]]></name></author>
		<updated>2012-02-02T18:51:38-04:00</updated>

		<published>2012-02-02T18:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98690#p98690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98690#p98690"/>
		<title type="html"><![CDATA[need flood protection for troll.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98690#p98690"><![CDATA[
Thanks for the help but it doesn't seem to work for some reason, doesn't send the user notice and the script  continues to work with no delay between commands.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11890">PrE</a> — Thu Feb 02, 2012 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2012-02-02T15:19:17-04:00</updated>

		<published>2012-02-02T15:19:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98689#p98689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98689#p98689"/>
		<title type="html"><![CDATA[need flood protection for troll.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98689#p98689"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>putserv "NOTICE $nick :Next command only after [expr $troll(delay) - [expr [clock seconds] - $troll(lasttime,$chan)]] seconds. Yon can use 1 request in $cmd(delay) seconds." </code></pre></div>just a small typo in here. <div class="codebox"><p>Code: </p><pre><code>$cmd(delay)</code></pre></div>should off course be<div class="codebox"><p>Code: </p><pre><code>$troll(delay)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Feb 02, 2012 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2012-02-02T11:41:38-04:00</updated>

		<published>2012-02-02T11:41:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98687#p98687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98687#p98687"/>
		<title type="html"><![CDATA[need flood protection for troll.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98687#p98687"><![CDATA[
I add some antiflood code between <div class="codebox"><p>Code: </p><pre><code># Troll antiflood #</code></pre></div>:<div class="codebox"><p>Code: </p><pre><code>############################################################################################################# # Troll v2.0 TCL by spithash@DALnet                                                                         # #                                                                                                           # # Gets troll quotes and makes people suffer!                                                                # # Version 2.0 is way different since there's no database in the file. It fetches the quotes by a website.   # # Also, you can ".chanset #channel +troll" to enable it.                                                    # # I added this just in case you don't want your trolls to be available globally.                            # ############################################################################################################# # Any official release of troll.tcl will be announced in http://forum.egghelp.org/viewtopic.php?t=17078     # # Official troll.tcl updates will be in egghelp.org's TCL archive,                                          # # Or here: http://bsdunix.info/spithash/troll/troll.tcl                                                     # # (Keep it to "puthelp" cause I didn't add any flood protection yet,                                        # # and it may cause your bot "Excess Flood" quit if it's in "putserv" or "putquick",                         # # if someone floods the !troll trigger or if the troll quote is too long.)                                  # ############################################################################################################# # Credits: special thanks to: username &amp; speechles who helped me with this :)                               # ############################################################################################################# setudef flag troll # Troll antiflood #set troll(delay) "15"# Troll antiflood #bind pub - !troll parce proc parce {nick uhost hand chan text} {     if {[channel get $chan troll]} { # Troll antiflood #        if {[info exists troll(lasttime,$chan)] &amp;&amp; [expr $troll(lasttime,$chan) + $troll(delay)] &gt; [clock seconds]} {            putserv "NOTICE $nick :Next command only after [expr $troll(delay) - [expr [clock seconds] - $troll(lasttime,$chan)]] seconds. Yon can use 1 request in $cmd(delay) seconds."            return 0        }# Troll antiflood #::http::config -urlencoding utf-8 -useragent "Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.8.1) Gecko/2006101023 Firefox/2.0" set url [::http::geturl "http://rolloffle.churchburning.org/troll_me.php" -timeout 15000] set data [::http::data $url] ::http::cleanup $url regsub -all -- {\n} $data "" data; regexp -nocase -- {&lt;p .*?&gt;(.*?)&lt;/p&gt;} $data -&gt; info regsub -all -- {(&lt;strong[^&gt;]*&gt;)|(&lt;/strong&gt;)} $info "\002" info; # Troll antiflood #    set troll(lasttime,$chan) [clock seconds] # Troll antiflood #while { $info != "" } {     puthelp "PRIVMSG $chan :[string range $info 0 419]"     set info [string range $info 420 end]     }  } } putlog "troll.tcl v2.0 by spithash@DALnet iz up and trollin'" # EOF</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Thu Feb 02, 2012 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PrE]]></name></author>
		<updated>2012-02-01T15:39:20-04:00</updated>

		<published>2012-02-01T15:39:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98681#p98681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98681#p98681"/>
		<title type="html"><![CDATA[need flood protection for troll.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98681#p98681"><![CDATA[
Here is the script, thanks if anyone can do this....<br><div class="codebox"><p>Code: </p><pre><code>############################################################################################################## Troll v2.0 TCL by spithash@DALnet                                                                         ##                                                                                                           ## Gets troll quotes and makes people suffer!                                                                ## Version 2.0 is way different since there's no database in the file. It fetches the quotes by a website.   ## Also, you can ".chanset #channel +troll" to enable it.                                                    ## I added this just in case you don't want your trolls to be available globally.                            ############################################################################################################### Any official release of troll.tcl will be announced in http://forum.egghelp.org/viewtopic.php?t=17078     ## Official troll.tcl updates will be in egghelp.org's TCL archive,                                          ## Or here: http://bsdunix.info/spithash/troll/troll.tcl                                                     ## (Keep it to "puthelp" cause I didn't add any flood protection yet,                                        ## and it may cause your bot "Excess Flood" quit if it's in "putserv" or "putquick",                         ## if someone floods the !troll trigger or if the troll quote is too long.)                                  ############################################################################################################### Credits: special thanks to: username &amp; speechles who helped me with this :)                               ##############################################################################################################setudef flag trollbind pub - !troll parceproc parce {nick uhost hand chan text} {    if {[channel get $chan troll]} {::http::config -urlencoding utf-8 -useragent "Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.8.1) Gecko/2006101023 Firefox/2.0"set url [::http::geturl "http://rolloffle.churchburning.org/troll_me.php" -timeout 15000]set data [::http::data $url]::http::cleanup $urlregsub -all -- {\n} $data "" data;regexp -nocase -- {&lt;p .*?&gt;(.*?)&lt;/p&gt;} $data -&gt; inforegsub -all -- {(&lt;strong[^&gt;]*&gt;)|(&lt;/strong&gt;)} $info "\002" info;while { $info != "" } {     puthelp "PRIVMSG $chan :[string range $info 0 419]"    set info [string range $info 420 end]    }  }}putlog "troll.tcl v2.0 by spithash@DALnet iz up and trollin'"# EOF</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11890">PrE</a> — Wed Feb 01, 2012 3:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
