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

	<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>2022-07-04T02:29:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-07-04T02:29:10-04:00</updated>

		<published>2022-07-04T02:29:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111194#p111194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111194#p111194"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111194#p111194"><![CDATA[
You can try the following code (untested):<div class="codebox"><p>Code: </p><pre><code># lines floodset textftrigger 3:4set repeatwarnmsg {"stop please" "Final warning.."}set warned {}bind ctcp - "ACTION" actionfproc actionf {n u h d k t} {if {[isbotnick $d]} {  return 0  }textf $n $u $h $d $t}bind pubm - * textfproc textf {nick uhost hand chan text} {global textftrigger textf warnedif {[matchattr [nick2hand $nick] fmo|fmo $chan] || [isvoice $nick $chan]} { return }if {[string match -nocase #help $chan]} { return 0 }if {![info exists textf([set f [string tolower $uhost:$chan]])]} {set textf($f) 0}set umask "${chan}.${uhost}.${nick}"utimer [lindex [split $textftrigger :] 1] [list incr textf($f) -1]if {[incr textf($f)] &gt;= [lindex [split $textftrigger :] 0]} {if {[isvoice $nick $chan]} {  pushmode2  $chan -v  $nick }if {[lsearch $warned $umask]&gt;-1 &amp;&amp; [info exists ::cpt($umask)] &amp;&amp; $::cpt($umask)&gt;=[llength $::repeatwarnmsg]} {pushmode $chan +b *!*@[lindex [split $uhost @] 1]putkick $chan $nick "Sorry but repeating flood"set warned [lreplace $warned [lsearch $warned $umask] [lsearch $warned $umask]]unset ::cpt($umask)} else {if {[lsearch $warned $umask]==-1} { lappend warned $umask }incr ::cpt($umask) 1pushmode $chan +b m:*!*@[lindex [split $uhost @] 1]putserv "notice $nick :[colors] [lindex $::repeatwarnmsg $::cpt($umask)] [end]"after [expr {30*1000*1}] [list pushmode2 $chan -b m:*!*@[lindex [split $uhost @] 1]]}}}</code></pre></div>If you want to allow more warnings, just add messages in repeatwarnmsg, the user will be ban when all the messages are sent<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 04, 2022 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2022-07-03T22:19:22-04:00</updated>

		<published>2022-07-03T22:19:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111193#p111193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111193#p111193"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111193#p111193"><![CDATA[
<blockquote class="uncited"><div>Since you are working with scripts, you may be able to do that.<br><br>Here is an example (not tested), try to understand it.<div class="codebox"><p>Code: </p><pre><code># lines floodset textftrigger 3:4  set repeatwarnmsg1 "stop please"  set repeatwarnmsg2 "Final warning.."set warned {}bind ctcp - "ACTION" actionfproc actionf {n u h d k t} {if {[isbotnick $d]} {  return 0  }textf $n $u $h $d $t}bind pubm - * textfproc textf {nick uhost hand chan text} {global textftrigger textf warnedif {[matchattr [nick2hand $nick] fmo|fmo $chan] || [isvoice $nick $chan]} { return }if {[string match -nocase #help $chan]} { return 0 }if {![info exists textf([set f [string tolower $uhost:$chan]])]} {set textf($f) 0}set umask "${chan}.${uhost}.${nick}"utimer [lindex [split $textftrigger :] 1] [list incr textf($f) -1]if {[incr textf($f)] &gt;= [lindex [split $textftrigger :] 0]} {if {[isvoice $nick $chan]} {  pushmode2  $chan -v  $nick }if {[lsearch $warned $umask]&gt;-1} {pushmode $chan +b *!*@[lindex [split $uhost @] 1]putkick $chan $nick "Sorry but repeating flood"set warned [lreplace $warned [lsearch $warned $umask] [lsearch $warned $umask]]} else {lappend warned $umaskpushmode $chan +b m:*!*@[lindex [split $uhost @] 1]putserv "notice $nick :[colors] you have been temporary muted due to mass text lines....... slow down [end]"after [expr {30*1000*1}] [list pushmode2 $chan -b m:*!*@[lindex [split $uhost @] 1]]}}}</code></pre></div></div></blockquote>it can be added that it launches two warning phrases and the third definitive ban???<br>  <span style="color:red">set repeatwarnmsg1 "stop please"</span><br>  <span style="color:red">set repeatwarnmsg2 "Final warning.."</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Jul 03, 2022 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-18T06:36:42-04:00</updated>

		<published>2022-05-18T06:36:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111117#p111117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111117#p111117"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111117#p111117"><![CDATA[
thanks CrazyCat for the reply ive tried your suggested code it seems to work as expected so far, ....  i will test it some more thanks so far CrazyCat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed May 18, 2022 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-05-18T04:55:40-04:00</updated>

		<published>2022-05-18T04:55:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111116#p111116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111116#p111116"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111116#p111116"><![CDATA[
Since you are working with scripts, you may be able to do that.<br><br>Here is an example (not tested), try to understand it.<div class="codebox"><p>Code: </p><pre><code># lines floodset textftrigger 3:4set warned {}bind ctcp - "ACTION" actionfproc actionf {n u h d k t} {if {[isbotnick $d]} {  return 0  }textf $n $u $h $d $t}bind pubm - * textfproc textf {nick uhost hand chan text} {global textftrigger textf warnedif {[matchattr [nick2hand $nick] fmo|fmo $chan] || [isvoice $nick $chan]} { return }if {[string match -nocase #help $chan]} { return 0 }if {![info exists textf([set f [string tolower $uhost:$chan]])]} {set textf($f) 0}set umask "${chan}.${uhost}.${nick}"utimer [lindex [split $textftrigger :] 1] [list incr textf($f) -1]if {[incr textf($f)] &gt;= [lindex [split $textftrigger :] 0]} {if {[isvoice $nick $chan]} {  pushmode2  $chan -v  $nick }if {[lsearch $warned $umask]&gt;-1} {pushmode $chan +b *!*@[lindex [split $uhost @] 1]putkick $chan $nick "Sorry but repeating flood"set warned [lreplace $warned [lsearch $warned $umask] [lsearch $warned $umask]]} else {lappend warned $umaskpushmode $chan +b m:*!*@[lindex [split $uhost @] 1]putserv "notice $nick :[colors] you have been temporary muted due to mass text lines....... slow down [end]"after [expr {30*1000*1}] [list pushmode2 $chan -b m:*!*@[lindex [split $uhost @] 1]]}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed May 18, 2022 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-18T03:13:36-04:00</updated>

		<published>2022-05-18T03:13:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111114#p111114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111114#p111114"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111114#p111114"><![CDATA[
for example:<br> if the  first time its triggered it sets a muteban and unsets it after like 30 secs<br><blockquote class="uncited"><div>09:06:19 (Hitoshi)  : ilpwinwgzr omplezjwnd<br>09:06:20 (Hitoshi)  : sqlbmhpief rsbyhvvopn<br>09:06:20 (Hitoshi)  : ulnoexbkwy zlqktpxexd<br>09:06:21  @Falcon  Sets Mode on  #TestChan  to:  +b m:*!*@All4Masti-ac4.9jb.714.980.IP <br><br>09:06:51  @Falcon  Sets Mode on  #TestChan  to:  -b m:*!*@All4Masti-ac4.9jb.714.980.IP <br></div></blockquote><br>and when it triggers a second time from same $chan:$host:$nick within lets say 2 minutes then set a full ban without removing it<br><blockquote class="uncited"><div>09:07:25 (Hitoshi)  : ftpdvzjtrd tkbnsclrdl<br>09:07:26 (Hitoshi)  : jqdmelwvvb tffnnzkcvp<br>09:07:26 (Hitoshi)  : jwbeufyoad gwisxzdymv<br>09:07:26 (Hitoshi)  : wgrhxrjgso gqwmsyrtjs<br>09:07:26  @Falcon  Sets Mode on  #TestChan  to:  +b *!*@All4Masti-ac4.9jb.714.980.IP </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed May 18, 2022 3:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-16T04:24:28-04:00</updated>

		<published>2022-05-16T04:24:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111107#p111107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111107#p111107"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111107#p111107"><![CDATA[
i guess it needs some sort of counter based on channel:nick:host<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 16, 2022 4:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-14T19:29:46-04:00</updated>

		<published>2022-05-14T19:29:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111105#p111105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111105#p111105"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111105#p111105"><![CDATA[
The idea is to set a ban the second time it's triggered let's say within 2 minutes without having the timer removing it again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 14, 2022 7:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-13T01:27:26-04:00</updated>

		<published>2022-05-13T01:27:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111104#p111104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111104#p111104"/>
		<title type="html"><![CDATA[Lines Flood first  time set muteban second  time  full ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111104#p111104"><![CDATA[
greetz im using this code and it works  as intended it sets a temporare muteban after 3 lines in 4 seconds are posted in channel and unsets it after few seconds but we noticed some are in channel to keep flooding so setting another temporare muteban is useless we wanted to set a full ban the second time it happens and unset the counter<br><br>heres what we work  with:<br><div class="codebox"><p>Code: </p><pre><code># lines floodset textftrigger 3:4bind ctcp - "ACTION" actionfproc actionf {n u h d k t} {  if {[isbotnick $d]} {  return 0  }  textf $n $u $h $d $t}bind pubm - * textfproc textf {nick uhost hand chan text} { if {[matchattr [nick2hand $nick] fmo|fmo $chan] || [isvoice $nick $chan]} { return }  global textftrigger textf if {[string match -nocase #help $chan]} { return 0 } if {![info exists textf([set f [string tolower $uhost:$chan]])]} {  set textf($f) 0 } utimer [lindex [split $textftrigger :] 1] [list incr textf($f) -1] if {[incr textf($f)] &gt;= [lindex [split $textftrigger :] 0]} {  if {[isvoice $nick $chan]} {  pushmode2  $chan -v  $nick }  pushmode $chan +b m:*!*@[lindex [split $uhost @] 1]  putserv "notice $nick :[colors] you have been temporary muted due to mass text lines....... slow down [end]"  after [expr {30*1000*1}] [list pushmode2 $chan -b m:*!*@[lindex [split $uhost @] 1]] }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri May 13, 2022 1:27 am</p><hr />
]]></content>
	</entry>
	</feed>
