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

	<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-10T17:43:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-10T17:43:11-04:00</updated>

		<published>2005-05-10T17:43:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49335#p49335</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49335#p49335"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49335#p49335"><![CDATA[
You dont load scripts in the partyline. You load them in your config file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Tue May 10, 2005 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-05-10T10:25:59-04:00</updated>

		<published>2005-05-10T10:25:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49311#p49311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49311#p49311"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49311#p49311"><![CDATA[
How can i load this Script in the Partyline??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Tue May 10, 2005 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[helpme]]></name></author>
		<updated>2005-05-08T11:08:36-04:00</updated>

		<published>2005-05-08T11:08:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49202#p49202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49202#p49202"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49202#p49202"><![CDATA[
How can i load this Script in the Partyline??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6208">helpme</a> — Sun May 08, 2005 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-05T14:17:49-04:00</updated>

		<published>2004-04-05T14:17:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35256#p35256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35256#p35256"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35256#p35256"><![CDATA[
Allright, here is the "solution" .. replace:<div class="codebox"><p>Code: </p><pre><code>  if {[string equal [join [lsort [split $::njf(modes) ""]] ""] [join [lsort [split [string trim [getchanmode $chan] "+"] ""]] ""]]} {     return   }</code></pre></div>with this code:<div class="codebox"><p>Code: </p><pre><code>  set tmp [split [string trim [lindex [split [getchanmode $chan]] 0] "+"] ""]  if {[regexp -all [join [split $::njf(modes) ""] "|"] $tmp] == [string length $::njf(modes)]} {    return  }</code></pre></div>and give it a try.<br><br>PS: Many thanks to teemu for helping me out with the regexp <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=187">caesar</a> — Mon Apr 05, 2004 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-04-03T13:29:18-04:00</updated>

		<published>2004-04-03T13:29:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35177#p35177</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35177#p35177"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35177#p35177"><![CDATA[
DALnet... i use it on dalnet... =p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Sat Apr 03, 2004 1:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-03T13:21:27-04:00</updated>

		<published>2004-04-03T13:21:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35176#p35176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35176#p35176"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35176#p35176"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> This modes thing happend before using another test of the channel modes thing. I have done some tests and the channel modes thing isn't returning when the channel is locked. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Apr 03, 2004 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-04-03T12:39:55-04:00</updated>

		<published>2004-04-03T12:39:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35175#p35175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35175#p35175"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35175#p35175"><![CDATA[
Yes it works well BUT it lock and unlock like many times<br>* klik sets mode: +mR<br>* klik sets mode: +mR<br>* klik sets mode: +mR<br>* klik sets mode: +mR<br>* klik sets mode: -mR<br>* klik sets mode: -mR<br>* klik sets mode: -mR<br>* klik sets mode: -mR<br>hehehehe... i have tried to edit the code with the previous code posted but it still happen, do u have suggestion?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Sat Apr 03, 2004 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-03T11:42:01-04:00</updated>

		<published>2004-04-03T11:42:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35173#p35173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35173#p35173"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35173#p35173"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>### Settings:# What channel modes do you want to be used for locking the channel?set njf(modes) "m"# Number of joins in seconds keep channel locked for?# By default I've set it to 8 joins in 3 seconds to lock the channel for 60 seconds.set njf(jtu) 8:3:60######## Done with configurations, do not edit past here unless you know TCL!####### stuffsetudef flag njf### bindsbind join - * njf:joinbind part - * njf:part### joinproc njf:join {nick uhost handle chan} {  global njvno  set chan [string tolower $chan]  if {[isbotnick $nick] || ![botisop $chan] || ![channel get $chan njf]} {    return  }  if {![info exists njvno($chan)]} {    set njvno($chan) 0  }  if {[string equal [join [lsort [split $::njf(modes) ""]] ""] [join [lsort [split [string trim [getchanmode $chan] "+"] ""]] ""]]} {    return  }  set bla [split $::njf(jtu) ":"]  set nojoins [lindex $bla 0]  set insec [lindex $bla 1]  set unlockin [lindex $bla 2]  incr njvno($chan)  utimer $insec [list njf:reset $chan]  if {$njvno($chan) &gt;= $nojoins} {    putquick "MODE $chan +$::njf(modes)" -next    utimer $unlockin [list njf:unlock $chan]  }}### resetproc njf:reset {chan} {  global njvno  incr njvno($chan) -1  return}### unlockproc njf:unlock {chan} {  putquick "MODE $chan -$::njf(modes)" -next  return}### array removeproc njf:part {nick uhost hand chan msg} {  global njvno  if {![isbotnick $nick]} {    return  }  foreach arr_part [array names njvno] {    if {[string match $chan $arr_part]} {      array unset njvno $chan    }  }}</code></pre></div>Here.. Give it a try an let me know if you encount any problems with it. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>PS: Many thanks to teemu (#eggdrop @ Undernet) for helping me out  with the channel modes thing. Ow you one! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Apr 03, 2004 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-04-02T21:56:12-04:00</updated>

		<published>2004-04-02T21:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35168#p35168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35168#p35168"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35168#p35168"><![CDATA[
oww ok thanks caesar! i will wait<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Fri Apr 02, 2004 9:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-02T14:17:47-04:00</updated>

		<published>2004-04-02T14:17:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35162#p35162</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35162#p35162"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35162#p35162"><![CDATA[
I should rebuild this tcl script cos is a bit sloppy. Duno at what the heck I was thinking when I have made it in the first place. If it dosen't unlock the channel then my guess is that you have another tcl script that may have this "unlock" proc and this causing the script not to unlock the channel. I'll make myself some time and recode it and I'll let you know when it's finished.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 02, 2004 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-04-02T12:36:32-04:00</updated>

		<published>2004-04-02T12:36:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35155#p35155</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35155#p35155"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35155#p35155"><![CDATA[
its the same./.. it doesnt do unlock the channel... i dont know why<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Fri Apr 02, 2004 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-04-02T04:35:42-04:00</updated>

		<published>2004-04-02T04:35:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35149#p35149</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35149#p35149"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35149#p35149"><![CDATA[
yeaa... the bot doesnt do unlock channel after 30 secs. hmm let me try dl from your web. thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Fri Apr 02, 2004 4:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-02T01:05:34-04:00</updated>

		<published>2004-04-02T01:05:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35145#p35145</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35145#p35145"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35145#p35145"><![CDATA[
It should unlock it after 30 seconds.. do you get any errors? <a href="http://www.r0x0ring.com/" class="postlink">Here</a> is my web page now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 02, 2004 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-04-01T18:51:32-04:00</updated>

		<published>2004-04-01T18:51:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35141#p35141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35141#p35141"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35141#p35141"><![CDATA[
caesar i tried to dl from your link but the page cannot be displayed. so i tried this code.<blockquote class="uncited"><div># njf.tcl <br># version 0.3<br># caesar &lt;<a href="mailto:cezarica@prietenii.com">cezarica@prietenii.com</a>&gt;<br># #eggdrop @ Undernet.org<br># <a href="http://www.geocities.com/caesartcl/" class="postlink">http://www.geocities.com/caesartcl/</a><br><br>### Description:<br># An small and efective channel locker in case of an botnet join.<br>#<br>### What's new?<br>#   o added specific channel flag, this means it will work only for channels that have +njf flag;<br>#   o corrected some problems regarding the channel locker (thanks to ppslim for the solution<br># and to Gothic-Angel for pointing this out!);<br>#   o some other small fixes.<br>#<br>### Many thanks to:<br>#   o MassKilla (#eggdrop @ Undernet) for the help on arrays and stuff;<br>#   o ppslim for the solution on the channel locker modes;<br>#   o Gothic-Angel for tryng and pointing out some problems in the previous version.<br>#<br>#<br>### Instructions:<br># In order it to work on your channel, it must have +njf flag. Use .chanset to add/remove it.<br>#<br>### Commands:<br>#<br>#     Where  Flag Command   Description<br>#     -----  ---- -------   -----------<br>#<br>#     PUB : N/A<br>#<br>#     MSG : N/A<br>#<br>#     DCC :  n|n .chanset   Use .chanset to set the script active for the particular channel or not.<br>#                           Example: .chanset #bla +njf<br>#                           .chanset #bla -njf<br>#<br>### Settings:<br>#<br># What channel modes do you want to be used for locking the channel?<br>set modes "mR"<br><br># Number of joins in seconds keep channel locked for?<br># By default I've set it to 8 joins in 3 seconds to lock the channel for 60 seconds.<br>set jtu 6:4:30<br><br>### ANY EDITING AND/OR MODIFICATIONS MADE BEYOND THIS IS YOUR OWN RISK! ###<br><br># stuff<br>setudef flag njf<br>foreach chan [channels] {<br>if {![channel get [string tolower $chan] njf]} { continue }<br>set val([string tolower $chan]) 0 }<br><br># binds<br>bind join - * njf:join<br>bind part - * njf:part<br><br># join<br>proc njf:join {nick uhost handle chan} {<br>  global val<br>  if {$nick == $::botnick || ![botisop [string tolower $chan]] || ![channel get [string tolower $chan] njf]} {<br>    return<br>  }<br><br>  # fix after an .chanset on a channel<br>  if {![info exists val([string tolower $chan])]} { set val([string tolower $chan]) 0 }<br><br>  # is channel locked?<br>  set cm [getchanmode $chan] <br>  if {(([string match {+*[$::modes]*[::modes]*} $cm]) &amp;&amp; ([llength [split $::modes]] == 1)) || (([string match {+*[::modes]*[::modes]* *} $cm]) &amp;&amp; ([length [split $cm]] &gt; 1))} { return }<br><br>  # array fix<br>  foreach channel [array names val] {<br>    if {[string match [string tolower $chan] [string tolower $chan]nel]} {<br>      array set val "[string tolower $chan] 0"<br>    }<br>  }<br><br>  # continue<br>  set nojoins [lindex [split $::jtu ":"] 0]<br>  set insec [lindex [split $::jtu ":"] 1]<br>  set unlockin [lindex [split $::jtu ":"] 2]<br>  incr val([string tolower $chan])<br>  utimer $insec [list reset [string tolower $chan]]<br>  if {$val([string tolower $chan]) &gt;= $nojoins} {<br>    putquick "MODE [string tolower $chan] +$::modes"<br>    utimer $insec [list reset [string tolower $chan]]<br>  }<br>}<br><br># reset<br>proc reset {chan} {<br>  global val<br>  incr val([string tolower $chan]) -1<br>  return<br>}<br><br># unlock<br>proc unlock {chan} {<br>  putquick "MODE [string tolower $chan] -$::modes"<br>  return<br>}<br><br># array remove<br>proc njf:part { nick uhost hand chan msg } {<br>global val<br>if {$nick != $::botnick} {<br>  return<br>}<br>foreach arr_part [array names val] {<br>  if {[string match [string tolower [string tolower $chan]] $arr_part]} {<br>    array unset val [string tolower $chan]<br>  }<br>}<br>}<br><br>putlog "njf.tcl loaded.."</div></blockquote>but the problem is the bot dont do unlock the channel after lock it... do u know where s the problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Thu Apr 01, 2004 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-12T02:16:35-04:00</updated>

		<published>2003-04-12T02:16:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18936#p18936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18936#p18936"/>
		<title type="html"><![CDATA[Join Flood Protection (need help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18936#p18936"><![CDATA[
Tests where complete and succesfull. I've added a new feature to it (+njf for channels you want it enabled), made changes to the code, fixed the stuff that we discussed til now and sent it to slennox for the TCL Archive. Also, I've uploaded it <a href="http://www.geocities.com/caesartcl/archive/njf.tcl.txt" class="postlink">here</a>, on my *webby* <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>PS: Let me know if there are some *bugs* or something in it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Apr 12, 2003 2:16 am</p><hr />
]]></content>
	</entry>
	</feed>
