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

	<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>2007-11-29T14:54:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-11-29T14:54:03-04:00</updated>

		<published>2007-11-29T14:54:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78801#p78801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78801#p78801"/>
		<title type="html"><![CDATA[getting error in banmask and Mode Unban delayed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78801#p78801"><![CDATA[
Fix the title of your topic to the script's name. This belongs into the Script releases &amp; support forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Nov 29, 2007 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sk-4]]></name></author>
		<updated>2007-11-29T14:26:52-04:00</updated>

		<published>2007-11-29T14:26:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78799#p78799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78799#p78799"/>
		<title type="html"><![CDATA[getting error in banmask and Mode Unban delayed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78799#p78799"><![CDATA[
i tried to use the banmask but it showing ban in format ???<br> *!*??????@*<br><br>it show only for ident ban<br><br> putquick "MODE $c +MRb-k *!$ident@* Consecutive.identd.length.flood" -nex<br><br>can it be changed to +b *!*nick@* rather then using   +b <br>*!*????@*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9352">sk-4</a> — Thu Nov 29, 2007 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-10-06T18:29:54-04:00</updated>

		<published>2007-10-06T18:29:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76430#p76430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76430#p76430"/>
		<title type="html"><![CDATA[getting error in banmask and Mode Unban delayed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76430#p76430"><![CDATA[
Posting code within <div class="codebox"><p>Code: </p><pre><code></code></pre></div> tags makes it easier to read; so please fix.<br><br>Secondly, if you bothered to read you'd see what to do to select a hostmask:<blockquote class="uncited"><div><strong class="text-strong"># Set Banmsk here</strong><br># 0: *!<a href="mailto:user@full.host.net">user@full.host.net</a><br># 1: *!*<a href="mailto:user@full.host.net">user@full.host.net</a><br># 2: *!*@full.host.net<br># 3: *!*user@*.host.net<br># 4: *!*@*.host.net<br># 5: nick!<a href="mailto:user@full.host.net">user@full.host.net</a><br># 6: nick!*<a href="mailto:user@full.host.net">user@full.host.net</a><br># 7: nick!*@full.host.net<br># 8: nick!*user@*.host.net<br># 9: nick!*@*.host.net<br><strong class="text-strong"># <span style="color:darkred">EXAMPLE</span>: set jfb 2</strong><br>set jfb 2 </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Oct 06, 2007 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sk-4]]></name></author>
		<updated>2007-10-06T13:57:05-04:00</updated>

		<published>2007-10-06T13:57:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76424#p76424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76424#p76424"/>
		<title type="html"><![CDATA[getting error in banmask and Mode Unban delayed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76424#p76424"><![CDATA[
hi guys iam new to this section i have this script i took from one of the webside ,i cant remeber where it from..the error i getting from this script is it giving error in banmask ex.Bot sets mode: +b **????@*..i would like it to ban like this *!*@85.96.72.59 or sk3!*@*<br><br>2.and the +MR taking time to unban the mode and soemtime it not unbanning the mode if bot got excess flood<br><br>hope somebody can help to repair the script,cause iam totaly 0% in tcl knowledge <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":-D" title="Very Happy"><br><br>##################################################################################<br>#                       Advancec Join Food Protection Tools                  #<br>#                                                                                #<br>#  #<br>##################################################################################<br>#                              For 1.6.10 and above.                             #<br># Consecutive Join Flood                                                         #<br># Consecutive Alphanumeric Nick Flood                                            #<br># Consecutive Unresolved Host Flood                                              #<br># Consecutive Identd Length Flood                                                #<br># Fast Join Parts                                                                #<br># Bad Nick/Identd                                                                #<br>##################################################################################<br># Enable Join Flood Protection, In your partyline                                #<br># .chanset #channel +/-joinpro                                                   #<br># Enable Bad Nick/Identd Protection, In your partyline                           #<br># .chanset #channel +/-badnickident                                              #<br>##################################################################################<br>#                                    Version 2.0                                 #<br># Fixed modelock                                                                 #<br># Added newchanban for filterkicks in consecutive join flood                     #<br>##################################################################################<br><br>setudef flag joinpro<br>setudef flag badnickident<br><br># Consecutive Join Flood x(times):y(secs)  -----  (Host match)<br># Since it does a consecutive check, it's fine if you chk for at least 2 times in 1 sec.<br># EXAMPLE: set jf 2:3 <br>set jf 3:4<br><br># Consecutive Alphanumeric Drone Flood x:y<br># EXAMPLE: set df 2:3<br>set df 3:5<br><br># Consecutive Unresolved Host Flood x:y<br># EXAMPLE: set uh 3:2<br>set uh 3:5<br><br># Consecutive Identd Length Flood x:y<br># EXAMPLE: set idf 2:3<br>set idf 3:4<br><br># Set Fast Join Parts in number of seconds here.<br># EXAMPLE: set fjp 2<br>set fjp 5<br><br># Set Banmsk here <br># 0: *!<a href="mailto:user@full.host.net">user@full.host.net</a> <br># 1: *!*<a href="mailto:user@full.host.net">user@full.host.net</a> <br># 2: *!*@full.host.net<br># 3: *!*user@*.host.net <br># 4: *!*@*.host.net <br># 5: nick!<a href="mailto:user@full.host.net">user@full.host.net</a> <br># 6: nick!*<a href="mailto:user@full.host.net">user@full.host.net</a> <br># 7: nick!*@full.host.net<br># 8: nick!*user@*.host.net <br># 9: nick!*@*.host.net<br># EXAMPLE: set jfb 2<br>set jfb 2<br><br># Current channel Mode Lock is +MR, Unset Mode Lock in number of mins here<br># EXAMPLE: set unmode 2<br>set unmode 1<br><br>########################### SET BAD NICK HERE ##########################<br>set bad_names {<br>  "bitch"<br>  "blowjob"<br>  "cock"<br>  "[censored]"<br>  "dick"<br>  "[censored]"<br>  "f?u?c?k"<br>  "panties"<br>  "penis"<br>  "pussy"<br>  "slut"<br>  "whore"<br>  "b0obs"<br>  "bo0bs"<br>  "boobs"<br>}<br><br># Set unban time in "seconds" for bad nick/ident here. (300sec = 5mins) <br># EXAMPLE: set unbani 300<br>set unbani 120<br><br>########################### STOP EDITING #########################<br>bind join -|- * joinflood<br>proc joinflood {n u h c} {<br>  global jfchans jf ipf cipf df drf cdrf uh urhf curhf idf idlf cidf jfb unmode bad_names unbani floodmr<br>  set c [string tolower $c]<br>  if {[lsearch -exact [channel info $c] +joinpro] == -1} {return 0}<br>  if {(![botisop $c]) || ([matchattr $h of|of])} {return 0}<br>  if {![info exists ipf($c)]} { set ipf($c) "" }<br>  if {![info exists floodmr($c)]} { set floodmr($c) 0 }<br>  set ip [lindex [split $u @] 1]<br>  if {$ip == $ipf($c)} {<br>    incr cipf($c)<br>    utimer [lindex [split $jf :] 1] [list cipf:dec $c]<br>    if {$cipf($c) &gt;= [lindex [split $jf :] 0]} {<br>      set jban [hostmask $n!$u $jfb]<br>        if {$floodmr($c) == "0"} {<br>          putquick "MODE $c +MRb-k $jban 4Consecutive.Join.Flood" -next<br>          set floodmr($c) 1<br>          timer $unmode [list unlock $c]  <br>          newchanban $c $jban "" "4Join 12flood 3Detected 4• 14HEY..Listen Flooder,There Is Two Ways,Stay In Peace Or Leave Us In Peace " 5<br>        } else {<br>            newchanban $c $jban "" "4Mass Join 12flood 3Detected 4• 14I Know U Like To Flood In the Channel,and I Like To Kick Flooder Like U Out From the Channel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":-D" title="Very Happy"> " 5<br>          }<br>      return 0<br>    }<br>    } else {<br>    set ipf($c) $ip<br>    set cipf($c) 1<br>    utimer [lindex [split $jf :] 1] [list cipf:dec $c]<br>  } <br>  set dr [regexp -nocase {^[a-z]{3,}[0-9]{1,}$} $n]<br>  if {$dr == 0 || [string match "Guest?????" "$n"]} { <br>    set cdrf($c) 0 <br>    } else {<br>    if {![info exists drf($c)]} { set drf($c) "" }<br>    if {$dr == $drf($c)} {<br>      incr cdrf($c)<br>      utimer [lindex [split $df :] 1] [list cdrf:dec $c]<br>      if {$cdrf($c) &gt;= [lindex [split $df :] 0]} {<br>        if {$floodmr($c) == "0"} {<br>          putquick "MODE $c +M-k alphanumeric.nick.flood" -next<br>          timer $unmode [list unlock $c]<br>          set floodmr($c) 1<br>          return 0<br>        }<br>      }<br>      } else {<br>      set drf($c) $dr<br>      set cdrf($c) 1<br>      utimer [lindex [split $df :] 1] [list cdrf:dec $c]<br>    }<br>  }<br>  scan $u %\[^@\]@%s ident host <br>  set urh [string match "~*" "$ident"]<br>  if {$urh == 0 || [string match "Guest?????" "$n"]} { <br>    set curhf($c) 0 <br>    } else {<br>    if {![info exists urhf($c)]} { set urhf($c) "" }<br>    if {$urh == $urhf($c)} {<br>      incr curhf($c)<br>      utimer [lindex [split $df :] 1] [list curhf:dec $c]<br>      if {$curhf($c) &gt;= [lindex [split $uh :] 0]} {<br>        if {$floodmr($c) == "0"} {<br>          putquick "MODE $c +MR-k Unresolved.host.flood" -next<br>          timer $unmode [list unlock $c]<br>          set floodmr($c) 1<br>          return 0<br>        }<br>      }<br>      } else {<br>      set urhf($c) $urh<br>      set curhf($c) 1<br>      utimer [lindex [split $uh :] 1] [list curhf:dec $c]<br>    }<br>  }<br>  set id [lindex [split $u @] 0]<br>  set idl [string length $id]<br>  if {![info exists idlf($c)]} { set idlf($c) "" }<br>  if {$idl == $idlf($c)} {<br>    incr cidf($c)<br>    utimer [lindex [split $idf :] 1] [list cidf:dec $c]<br>    if {$cidf($c) &gt;= [lindex [split $idf :] 0]} {<br>      regsub -all -- {.} $id ? ident<br>      if {$floodmr($c) == "0"} { <br>        putquick "MODE $c +MRb-k *!$ident@* Consecutive.identd.length.flood" -next<br>        utimer 60 [list unban $c *!$ident@*]<br>        timer $unmode [list unlock $c]<br>        set floodmr($c) 1<br>        return 0<br>      } else {<br>          putquick "MODE $c +Mb *!$ident@*" -next<br>          return 0<br>        }<br>    }<br>    } else {<br>    set idlf($c) $idl<br>    set cidf($c) 1<br>    utimer [lindex [split $idf :] 1] [list cidf:dec $c]<br>  }<br>  if {[lsearch -exact [channel info $c] +badnickident] == -1} {return 0}<br>  foreach bn $bad_names {<br>    if {[string match -nocase "*$bn*" "$n"]} {<br>      putquick "MODE $c +b *$bn*!*@*" -next<br>      putquick "KICK $c $n : 4Offensive 12Ident 3Detected 4•14 According to my Database this ident is Bad kindly Change it and Connect Back to Server "<br>      utimer $unbani [list unban $c *$bn*!*@*]<br>      return 0<br>    }<br>  }<br>  foreach bi $bad_names {<br>    if {[string match -nocase "*$bi*" "$id"]} {<br>      putquick "MODE $c +b *!*$bi*@*" -next<br>      putquick "KICK $c $n : 4Offensive 12Ident 3Detected 4•14 According to my Database Ur ident is Bad kindly Change it and ReConnect Back to Server "<br>      utimer $unbani [list unban $c *!*$bi*@*]<br>      return 0<br>    }<br>  }<br>}<br>############ FAST JOIN/PART ##################<br>bind part - * banpart<br>proc banpart {n u h c a} {<br>  global fjp jfb<br>  set c [string tolower $c]<br>  if {[lsearch -exact [channel info $c] +joinpro] == -1} {return 0}<br>  if {(![botisop $c]) || ([matchattr $h o]) || ([matchattr $h f])} {return 0}<br>  if {[getchanjoin $n $c] &gt;= [expr {[clock seconds] -$fjp}]} {<br>    set ban [hostmask $n!$u $jfb]<br>    putquick "MODE $c +b $ban" -next<br>  }<br>}<br>########### PROC hostmask ################<br>proc hostmask [list name <ul><li>] { <br>  if {[scan $name {%[^!]!%[^@]@%s} nick user host]!=3} { <br>    error "Usage: hostmask &lt;nick!user@host&gt; \[type\]" <br>  } <br>  if [string match {[3489]} $type] { <br>    if [string match {*[0-9]} $host] { <br>      set host [join [lrange [split $host .] 0 2] .].* <br>      } elseif {[string match *.*.* $host]} { <br>      set host *.[join [lrange [split $host .] end-1 end] .] <br>    } <br>  } <br>  if [string match {[1368]} $type] { <br>    set user *[string trimleft $user ~] <br>    } elseif {[string match {[2479]} $type]} { <br>    set user * <br>  } <br>  if [string match {[01234]} $type] { <br>    set nick * <br>  } <br>  set name $nick!$user@$host <br>}<br>########## PROC *:DEC ###############<br>proc cipf:dec {c} {<br>  global cipf<br>  incr cipf($c) -1<br>  if {$cipf($c) &lt; 0} {set cipf($c) 0}  <br>  return 0<br>}<br>proc cdrf:dec {c} {<br>  global cdrf<br>  incr cdrf($c) -1<br>  if {$cdrf($c) &lt; 0} {set cdrf($c) 0}<br>  return 0<br>}<br>proc curhf:dec {c} {<br>  global curhf<br>  incr curhf($c) -1<br>  if {$curhf($c) &lt; 0} {set curhf($c) 0}<br>  return 0<br>}<br>proc cidf:dec {c} {<br>  global cidf<br>  incr cidf($c) -1<br>  if {$cidf($c) &lt; 0} {set cidf($c) 0}<br>  return 0<br>}<br>########## PROC UNBAN #############<br>proc unban {c m} {<br>  putserv "MODE $c -b $m" <br>}<br>########## PROC UNLOCK ##############<br>proc unlock {chan} {<br>  global floodmr<br>  set cmode [getchanmode $chan]<br>  set floodmr($chan) 0<br>  if {[string match "*R*M*" "$cmode"]} {putserv "MODE $chan -MR" ; return 0}<br>  if {[string match "*M*" "$cmode"]} {putserv "MODE $chan -M" ; return 0}<br>  if {[string match "*R*" "$cmode"]} {putserv "MODE $chan -R" ; return 0}<br>  return 0<br>}<br>##################### REHASH/RESTART ########################<br>foreach t [utimers] {<br>  if {[lindex $t 1] == "cipf:dec"} {killutimer [lindex $t end]}<br>  if {[lindex $t 1] == "cdrf:dec"} {killutimer [lindex $t end]}<br>  if {[lindex $t 1] == "curhf:dec"} {killutimer [lindex $t end]}<br>  if {[lindex $t 1] == "cidf:dec"} {killutimer [lindex $t end]}<br>  if {[lindex $t 1] == "unban"} {killutimer [lindex $t end]}<br>}<br>foreach t [timers] {<br>  if {[lindex $t 1] == "unlock"} {killtimer [lindex $t end]}<br>}<br>set chans [channels]<br>set chans [split [string tolower $chans]]<br>foreach c $chans {<br>  set cipf($c) 0<br>  set ipf($c) ""<br><br>  set drf($c) ""<br>  set cdrf($c) 0<br><br>  set urhf($c) ""<br>  set curhf($c) 0<br><br>  set idlf($c) ""<br>  set cidf($c) 0<br><br>  set floodmr($c) 0<br>}<br><br><br>##################################</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9352">sk-4</a> — Sat Oct 06, 2007 1:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
