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

	<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>2008-08-30T07:49:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2008-08-30T07:49:04-04:00</updated>

		<published>2008-08-30T07:49:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84926#p84926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84926#p84926"/>
		<title type="html"><![CDATA[Flood Protection for trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84926#p84926"><![CDATA[
Japp all can write too<br><br>Thanks a lot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Sat Aug 30, 2008 7:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2008-08-28T17:51:38-04:00</updated>

		<published>2008-08-28T17:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84896#p84896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84896#p84896"/>
		<title type="html"><![CDATA[Flood Protection for trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84896#p84896"><![CDATA[
Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Thu Aug 28, 2008 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-08-28T10:27:31-04:00</updated>

		<published>2008-08-28T10:27:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84889#p84889</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84889#p84889"/>
		<title type="html"><![CDATA[Flood Protection for trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84889#p84889"><![CDATA[
change:<br><div class="codebox"><p>Code: </p><pre><code>variable method "privmsg" </code></pre></div>to<br><div class="codebox"><p>Code: </p><pre><code>variable method "notice" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Aug 28, 2008 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2008-08-28T07:24:52-04:00</updated>

		<published>2008-08-28T07:24:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84886#p84886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84886#p84886"/>
		<title type="html"><![CDATA[Flood Protection for trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84886#p84886"><![CDATA[
Works good for me.<br><br>One more change if its possible. Can u change this<br><br>putserv "$rules::variable::method $nickname :Function in use, please try again in around 20 seconds." <br><br>in a notice message? <br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Thu Aug 28, 2008 7:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-08-27T08:50:27-04:00</updated>

		<published>2008-08-27T08:50:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84865#p84865</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84865#p84865"/>
		<title type="html"><![CDATA[Flood Protection for trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84865#p84865"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>namespace eval rules {namespace eval variable {variable trigger ".rules"variable channel "#channel"variable filename "scripts/rules.txt"variable method "privmsg"variable use "0"if {![info exists timer]} {     variable timer "" } elseif {$timer != ""} {     catch {killutimer $timer}variable timer ""}variable timeout "20"; # in seconds}bind PUBM - "$::rules::variable::channel $::rules::variable::trigger*" [namespace current]::publicproc public {nickname hostname handle channel arg} {if {$rules::variable::use} {putserv "$rules::variable::method $nickname :Function in use, please try again in around 20 seconds."} else {set rules::variable::use "1"set rules::variable::timer [utimer $rules::variable::timeout [list set rules::variable::use "0"]]set file [open $rules::variable::filename r]set data [read -nonewline $file]close $fileif {[llength $data] &lt; 1} {putserv "$rules::variable::method $nickname :There are no rules..."} else {foreach line [split $data \n] {if {$line == ""} { continue }putserv "$rules::variable::method $nickname :$line"}}}}}</code></pre></div>Untested<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Wed Aug 27, 2008 8:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2008-08-27T07:04:34-04:00</updated>

		<published>2008-08-27T07:04:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84862#p84862</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84862#p84862"/>
		<title type="html"><![CDATA[Flood Protection for trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84862#p84862"><![CDATA[
Hi.<br>I have a little Script here that needs a Spamtrigger but i am not shure where to insert it. Hopefully you can help me with this.<br>Well, first the Script<br><div class="codebox"><p>Code: </p><pre><code>namespace eval rules {   namespace eval variable {      variable trigger ".rules"      variable channel "#channel"      variable filename "scripts/rules.txt"      variable method "privmsg"   }   bind PUBM - "$::rules::variable::channel $::rules::variable::trigger*" [namespace current]::public   proc public {nickname hostname handle channel arg} {      set file [open $::rules::variable::filename r]      while {![eof $file]} {         switch $::rules::variable::method {            privmsg {               putmsg $nickname [gets $file]            }            notice {               putnotc $nickname [gets $file]               }         }      }      close $file   }}</code></pre></div>and here is an example of an Spamcheck Trigger i would like to use<br>Maybe you have a better one...<div class="codebox"><p>Code: </p><pre><code>set inuse 0proc pub:info {nick host hand chan arg} {    global inuse    if { $inuse == 1 } {    putquick "PRIVMSG $nick :Pls wait 20 Secs. Function is in use"    return </code></pre></div>Thanks to all for helping me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Wed Aug 27, 2008 7:04 am</p><hr />
]]></content>
	</entry>
	</feed>
