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

	<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-05-11T16:12:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-11T15:46:45-04:00</updated>

		<published>2005-05-11T15:46:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49379#p49379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49379#p49379"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49379#p49379"><![CDATA[
A little typo, flood(kmsg) should be floodr(kmsg). (edited the code)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed May 11, 2005 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-05-11T12:12:51-04:00</updated>

		<published>2005-05-11T12:12:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49375#p49375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49375#p49375"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49375#p49375"><![CDATA[
Partyline: [12:08] Tcl error [lock:pubm]: can't read "floodr(kmsg)": no such element in array<br><br>Channel: <br><br>[19:09:03] * Eggdrop1 sets mode: +m<br>[19:09:13] * Eggdrop1 sets mode: -m<br><br>In the script i set the timer 10 seconds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Wed May 11, 2005 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-05-11T10:22:16-04:00</updated>

		<published>2005-05-11T10:22:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49372#p49372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49372#p49372"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49372#p49372"><![CDATA[
uploaded <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Now waiting for an attack <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Wed May 11, 2005 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-10T17:47:05-04:00</updated>

		<published>2005-05-10T17:47:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49337#p49337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49337#p49337"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49337#p49337"><![CDATA[
add <div class="codebox"><p>Code: </p><pre><code>utimer &lt;seconds&gt; [list putserv "MODE $chan -mR"]</code></pre></div>under <div class="codebox"><p>Code: </p><pre><code>putquick "MODE $chan +mR" -next</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 10, 2005 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-05-10T16:13:15-04:00</updated>

		<published>2005-05-10T16:13:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49329#p49329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49329#p49329"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49329#p49329"><![CDATA[
how can i add a timer to remove the lock?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Tue May 10, 2005 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-10T15:41:53-04:00</updated>

		<published>2005-05-10T15:41:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49327#p49327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49327#p49327"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49327#p49327"><![CDATA[
In the lock:notc proc, in the second line, global, declare $botnick variable as global, by adding botnick into the line.<br><div class="codebox"><p>Code: </p><pre><code>global botnick</code></pre></div>OR just replace $botnick by $::botnick everywhere in the script. <br><br>In this script as far as I can see the lock will remain on, untill it is manually removed by someone, since there is no utimer or timer to remove the lock in the script, just a code place it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue May 10, 2005 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-05-10T07:57:41-04:00</updated>

		<published>2005-05-10T07:57:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49308#p49308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49308#p49308"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49308#p49308"><![CDATA[
<blockquote class="uncited"><div>You mean that repeat script ? This is a rewrite so again we might pass through all those errors <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code>#set number of messages in how many seconds to lock chan.set floodr(msgsec) 7:2#set length of messages that trigger the script.set floodr(len) 200#set kick msgset flood(kmsg) "Flooder detected."bind pubm - * lock:pubmbind notc - * lock:notcset floodr(msgs) [lindex [split $floodr(msgsec) :] 0]set floodr(secs) [lindex [split $floodr(msgsec) :] 1]proc lock:pubm {nick uhost hand chan arg} { global floodr floodpub pubnicks if {![info exists floodpub($chan)]} { set floodpub($chan) 0 } fnicklappend $floodr(secs) pubnicks($chan) $nick:*!*@[lindex [split $uhost @] 1] if {[tincrease $floodr(secs) floodpub($chan)] == $floodr(msgs)} {  putquick "MODE $chan +mR" -next  foreach floodnick $pubnicks($chan) {   putquick "KICK $chan [lindex [split $floodnick :] 0] :$floodr(kmsg)"   pushmode $chan +b [lindex [split $floodnick :] 1]  } }}proc lock:notc {nick uhost hand arg chan} { global floodr floodnotc notcnicks if {[lindex [split $chan "@"] 0] == $botnick || [string index $chan 0] == "@"} {return 0} if {![info exists floodnotc($chan)]} { set floodnotc($chan) 0 } fnicklappend $floodr(secs) notcnicks($chan) $nick:*!*@[lindex [split $uhost @] 1] if {[tincrease $floodr(secs) floodnotc($chan)] == $floodr(msgs)} {  putquick "MODE $chan +mR" -next  foreach floodnick $notcnicks($chan) {   putquick "KICK $chan [lindex [split $floodnick :] 0] :$floodr(kmsg)"   pushmode $chan +b [lindex [split $floodnick :] 1]  } }} proc tincrease {value varinc} { upvar $varinc varvalue incr varvalue utimer $value [list tdecrease $varinc] return $varvalue}proc tdecrease varinc { upvar $varinc varvalue if {$varvalue &gt; 0} {  incr varvalue -1 } return}proc fnicklappend {value varnicks nickhost} { upvar $varnicks nicklist lappend nicklist  $nickhost utimer $value [list fnickreplace $varnicks $nickhost]}proc fnickreplace {varnicks nickhost} { upvar $varnicks nicklist set nicklist [lreplace $nicklist [lsearch -exact $nicklist $nickhost] [lsearch -exact $nicklist $nickhost]] return}</code></pre></div>This will lock the channel and kickban the flooders when offence is reached.<br><br>Edit: added bankick flooders feature.</div></blockquote>How many minutes will it keep the channel locked?<br>I also get this error in the partyline:<br><div class="codebox"><p>Code: </p><pre><code>[08:23] Tcl error [lock:notc]: can't read "botnick": no such variable</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Tue May 10, 2005 7:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-03T15:23:18-04:00</updated>

		<published>2005-05-03T15:23:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48955#p48955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48955#p48955"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48955#p48955"><![CDATA[
Read my second last post in this thread:<br><a href="http://forum.egghelp.org/viewtopic.php?t=9424" class="postlink">http://forum.egghelp.org/viewtopic.php?t=9424</a><br><br>I didn't get time to test the script yet, but it works fine without errors I guess.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue May 03, 2005 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-11T16:12:05-04:00</updated>

		<published>2005-05-03T08:22:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48945#p48945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48945#p48945"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48945#p48945"><![CDATA[
You mean that repeat script ? This is a rewrite so again we might pass through all those errors <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code>#set number of messages in how many seconds to lock chan.set floodr(msgsec) 7:2#set length of messages that trigger the script.set floodr(len) 200#set kick msgset floodr(kmsg) "Flooder detected."#set lock time.set floodr(ltime) 10bind pubm - * lock:pubmbind notc - * lock:notcset floodr(msgs) [lindex [split $floodr(msgsec) :] 0]set floodr(secs) [lindex [split $floodr(msgsec) :] 1]proc lock:pubm {nick uhost hand chan arg} { global floodr floodpub pubnicks if {![info exists floodpub($chan)]} { set floodpub($chan) 0 } fnicklappend $floodr(secs) pubnicks($chan) $nick:*!*@[lindex [split $uhost @] 1] if {[tincrease $floodr(secs) floodpub($chan)] == $floodr(msgs)} {  putquick "MODE $chan +mR" -next  utimer $floodr(ltime) [list puthelp "MODE $chan -mR"]  foreach floodnick $pubnicks($chan) {   putquick "KICK $chan [lindex [split $floodnick :] 0] :$floodr(kmsg)"   pushmode $chan +b [lindex [split $floodnick :] 1]  } }}proc lock:notc {nick uhost hand arg chan} { global floodr floodnotc notcnicks botnick if {[lindex [split $chan "@"] 0] == $botnick || [string index $chan 0] == "@"} {return 0} if {![info exists floodnotc($chan)]} { set floodnotc($chan) 0 } fnicklappend $floodr(secs) notcnicks($chan) $nick:*!*@[lindex [split $uhost @] 1] if {[tincrease $floodr(secs) floodnotc($chan)] == $floodr(msgs)} {  putquick "MODE $chan +mR" -next  utimer $floodr(ltime) [list puthelp "MODE $chan -mR"]  foreach floodnick $notcnicks($chan) {   putquick "KICK $chan [lindex [split $floodnick :] 0] :$floodr(kmsg)"   pushmode $chan +b [lindex [split $floodnick :] 1]  } }} proc tincrease {value varinc} { upvar $varinc varvalue incr varvalue utimer $value [list tdecrease $varinc] return $varvalue}proc tdecrease varinc { upvar $varinc varvalue if {$varvalue &gt; 0} {  incr varvalue -1 } return}proc fnicklappend {value varnicks nickhost} { upvar $varnicks nicklist lappend nicklist  $nickhost utimer $value [list fnickreplace $varnicks $nickhost]}proc fnickreplace {varnicks nickhost} { upvar $varnicks nicklist set nicklist [lreplace $nicklist [lsearch -exact $nicklist $nickhost] [lsearch -exact $nicklist $nickhost]] return}</code></pre></div>This will lock the channel and kickban the flooders when offence is reached.<br><br>Edit: added bankick flooders feature.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 03, 2005 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-03T05:46:09-04:00</updated>

		<published>2005-05-03T05:46:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48936#p48936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48936#p48936"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48936#p48936"><![CDATA[
<blockquote class="uncited"><div>Come to think of it, someone already wrote this kind of script on another post, but the post was deleted. Anyway, i'm not sure, any help would be appreciated.</div></blockquote>I think it was Awyeah and another user that were working on that script. I am sure if you ask Awyeah nicely he can dig it out for you <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=3723">^DooM^</a> — Tue May 03, 2005 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-03T04:07:55-04:00</updated>

		<published>2005-05-03T04:07:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48928#p48928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48928#p48928"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48928#p48928"><![CDATA[
there is a standalone repeat.tcl from the netbots package. it doesnt count by nicknames, but by uhost + channel.<br>but probably you didnt detail what you wanted, so probably the nicknames do not share same/similar uhosts (for similar you could simply use maskhost on the uhost).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue May 03, 2005 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-05-02T19:54:48-04:00</updated>

		<published>2005-05-02T19:54:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48923#p48923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48923#p48923"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48923#p48923"><![CDATA[
Come to think of it, someone already wrote this kind of script on another post, but the post was deleted. Anyway, i'm not sure, any help would be appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Mon May 02, 2005 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-05-02T19:50:40-04:00</updated>

		<published>2005-05-02T19:50:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48922#p48922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48922#p48922"/>
		<title type="html"><![CDATA[Stop the flooding from different nicknames.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48922#p48922"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Floodbot1: Flood Flood Flood Flood Flood Flood Flood Flood Flood Flood Floodbot2: Flood Flood Flood Flood Flood Flood Flood Flood Flood Flood Floodbot3: Flood Flood Flood Flood Flood Flood Flood Flood Flood Flood Floodbot4: Flood Flood Flood Flood Flood Flood Flood Flood Flood Flood</code></pre></div>If all this was coming from the same nickname, the repeat script would simply ban/kick the user. The problem is that it's coming from different nicknames. I do not want to use sentinel.tcl. Simply too many -useless for me- options. I need a script that will detect if the <strong class="text-strong">same</strong> text is coming from <strong class="text-strong">different</strong> users in the channel and ban/kick the matching offenders (channel ban).<br><br>Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Mon May 02, 2005 7:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
