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

	<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>2023-07-16T18:22:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2023-07-16T18:22:57-04:00</updated>

		<published>2023-07-16T18:22:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112055#p112055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112055#p112055"/>
		<title type="html"><![CDATA[Re: anti repeatitive characters freezing bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112055#p112055"><![CDATA[
I added something else that was missing.-------------<div class="codebox"><p>Code: </p><pre><code>bind pubm - * XantiX:repeatchars:textbind ctcp - ACTION repeatcharsctcpproc repeatcharsctcp {nick uhost hand chan keyword arg} {  XantiX:repeatchars:text $nick $uhost $hand $chan $arg}proc XantiX:repeatchars:text {nick uhost hand chan text} { if {[isbotnick $nick] || [isop $nick $chan] || [ishalfop $nick $chan] || [matchattr [nick2hand $nick] "o|o" $chan]} { return 0 }   set text [regsub -all -- {\s{2,}} [stripcodes bcruag [string trim $text]] { }]    set bmask m:[maskhost $nick!$uhost 2] if {[regexp -nocase {(.)\s*(?:\1\s*){20,}} $text] || [regexp -nocase {(..)\s*(?:\1\s*){20,}} $text]} {   if {![ischanban "$bmask" $chan]} { if {[isvoice $nick $chan]} { pushmode $chan -v $nick }  putquick "MODE $chan +b $bmask" putquick "KICK $chan $nick :you have exceeded the character limits allowed."      }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Jul 16, 2023 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2023-07-16T18:13:54-04:00</updated>

		<published>2023-07-16T18:13:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112054#p112054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112054#p112054"/>
		<title type="html"><![CDATA[Re: anti repeatitive characters freezing bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112054#p112054"><![CDATA[
try this, tweak a few things but it works<div class="codebox"><p>Code: </p><pre><code>bind pubm - * XantiX:repeatchars:textbind ctcp - ACTION repeatcharsctcpproc repeatcharsctcp {nick uhost hand chan keyword arg} {  XantiX:repeatchars:text $nick $uhost $hand $chan $arg}proc XantiX:repeatchars:text {nick uhost hand chan text} { if {[isbotnick $nick] || [isop $nick $chan] || [ishalfop $nick $chan] || [matchattr [nick2hand $nick] "o|o" $chan]} { return 0 }   set text [regsub -all -- {\s{2,}} [stripcodes bcruag [string trim $text]] { }]    set bmask m:[maskhost $nick!$uhost 2] if {[regexp -nocase {(.)\s*(?:\1\s*){10,}} $text] || [regexp -nocase {(..)\s*(?:\1\s*){20,}} $text]} {   if {![ischanban "$bmask" $chan]} { if {[isvoice $nick $chan]} { pushmode $chan -v $nick }       pushmode $chan +b $bmask      }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Jul 16, 2023 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-07-05T09:47:15-04:00</updated>

		<published>2023-07-05T09:47:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112042#p112042</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112042#p112042"/>
		<title type="html"><![CDATA[anti repeatitive characters freezing bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112042#p112042"><![CDATA[
greetz gentz i have a question about this tcl that detects repeated characters exceeding 20 like : <br><blockquote class="uncited"><div> <br><br>hhhhhhhhhhhhhhhhhhhh <br><br>h a h a h h a h a h h a h a h h a h a h <br><br>hahahhahahhahahhahah <br><br>haahaahaahaahaahaahaahaahaahaahaahaa<br><br>and so on<br></div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind pubm - * XantiX:repeatchars:textproc XantiX:repeatchars:text {nick uhost hand chan text} {         if {[isbotnick $nick] || [isop $nick $chan] || [ishalfop $nick $chan] || [matchattr [nick2hand $nick] "o|o" $chan]} { return 0 }       set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]       set text [string map [list \001ACTION ""] [stripcodes abcgru $text]]       set bmask m:[maskhost $nick!$uhost 2]    if {[regexp -nocase {(.)\s*(?:\1\s*){20,}} $text] || [regexp -nocase {(..)\s*(?:\1\s*){20,}} $text]} {     if {![ischanban "$bmask" $chan]} {     if {[isvoice $nick $chan]} { pushmode $chan -v $nick }       pushmode $chan +b $bmask       }   }}</code></pre></div><br>it seems to freeze the bot not sure why<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Jul 05, 2023 9:47 am</p><hr />
]]></content>
	</entry>
	</feed>
