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

	<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-03-05T21:12:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-05T21:12:44-04:00</updated>

		<published>2022-03-05T21:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110968#p110968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110968#p110968"/>
		<title type="html"><![CDATA[text character counter issue with nick like [somenick]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110968#p110968"><![CDATA[
thanks spike^ ive tested it and so  far seems to work as expected i will minitor it some more in an active channel and get back to ya hopefully<br><br>thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Mar 05, 2022 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-03-05T18:25:58-04:00</updated>

		<published>2022-03-05T18:25:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110966#p110966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110966#p110966"/>
		<title type="html"><![CDATA[Try this.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110966#p110966"><![CDATA[
Try this code, <br>.restart the bot to clear global vars<br><div class="codebox"><p>Code: </p><pre><code>set bflood(maxlength) 200set bflood(unsettime) 4bind pubm - * pubm:bytefloodproc pubm:byteflood {nick host hand chan text} {global bfloodif {[string match -nocase #help $chan]} { return 0 }set chan [string tolower $chan]set text [string map [list \017 ""] [stripcodes abcgru $text]]set length [string length [regsub -all {\ } $text ""]]if {[info exists bflood($chan:$nick)]} {  incr length $bflood($chan:$nick)  }if {($length &gt;= $bflood(maxlength))} {set bmask [maskhost "$nick!$host" 2]after [expr {5*1000*1}] [list pushmode2 $chan -b m:$bmask]pushmode $chan +b m:$bmaskputnow "NOTICE $nick Mass Text Detected"unset -nocomplain bflood($chan:$nick)return 0}if {![info exists bflood($chan:$nick)]} {utimer $bflood(unsettime) [list unset -nocomplain bflood($chan:$nick)]}set bflood($chan:$nick) $lengthreturn 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Mar 05, 2022 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-05T09:35:32-04:00</updated>

		<published>2022-03-05T09:35:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110965#p110965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110965#p110965"/>
		<title type="html"><![CDATA[text character counter issue with nick like [somenick]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110965#p110965"><![CDATA[
im struggling to find a solution for this small tcl counting text characters<br>till reaching threshold for some reason if nick is like [somenick] it reaches threshold with few characters not even reached the set bflood(maxlength) 200 threshold<br><br>im not sure how to fix this issue<br><br><br><br><div class="codebox"><p>Code: </p><pre><code>set bflood(maxlength) 200set bflood(unsettime) 4bind pubm - * pubm:bytefloodproc pubm:byteflood {nick host hand chan text} {global bfloodif {[string match -nocase #help $chan]} { return 0 }set chan [string tolower $chan]set text [string map [list \017 ""] [stripcodes abcgru $text]]set text [split $text]set length [string length [regsub -all {\ } $text ""]]if {[info exists bflood($chan:$nick)]} {  incr length $bflood($chan:$nick)  }if {($length &gt;= $bflood(maxlength))} {set bmask [maskhost "$nick!$host" 2]after [expr {5*1000*1}] [list pushmode2 $chan -b m:$bmask]pushmode $chan +b m:$bmaskputnow "NOTICE $nick Mass Text Detected"array unset bflood $chan:$nickreturn 0}if {![info exists bflood($chan:$nick)]} {utimer $bflood(unsettime) [list array unset bflood $chan:$nick]}set bflood($chan:$nick) $lengthreturn 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Mar 05, 2022 9:35 am</p><hr />
]]></content>
	</entry>
	</feed>
