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

	<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>2021-01-10T21:24:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2021-01-10T21:24:07-04:00</updated>

		<published>2021-01-10T21:24:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109329#p109329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109329#p109329"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109329#p109329"><![CDATA[
add this path but it doesn't work for me to skip : ; [ ]<div class="codebox"><p>Code: </p><pre><code>regsub -- {-[0-9A-Z].} $text {:;[ ]} text</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 Jan 10, 2021 9:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2021-01-10T20:10:15-04:00</updated>

		<published>2021-01-10T20:10:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109328#p109328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109328#p109328"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109328#p109328"><![CDATA[
it can be omitted in uppercase nicknames, for example the use of [] or: is omitted;<br>example if there is an uppercase nickname called GENICOZZ<br>And the users name it in the channel like this <span style="color:red">GENICOZZ:</span> or also <span style="color:red">GENICOZZ;</span><br>and the bot omit that semicolons and also omit when it is put between characters like <span style="color:red">[the-nickname]</span><br> example [GENICOZZ]<br> it is possible to create that variant so that it skips <span style="color:red">;</span> <span style="color:orange">:</span> and also <span style="color:green">[ ]</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Jan 10, 2021 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2020-12-06T18:06:04-04:00</updated>

		<published>2020-12-06T18:06:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109220#p109220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109220#p109220"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109220#p109220"><![CDATA[
thanks SpiKe^^ and caesar<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Dec 06, 2020 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-12-06T11:02:32-04:00</updated>

		<published>2020-12-06T11:02:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109219#p109219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109219#p109219"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109219#p109219"><![CDATA[
The variable "diff" is neither set nor called in the code you posted above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 06, 2020 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2020-12-06T00:26:26-04:00</updated>

		<published>2020-12-06T00:26:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109218#p109218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109218#p109218"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109218#p109218"><![CDATA[
if i delete these two routes<div class="codebox"><p>Code: </p><pre><code>if {[botisop $chan]} { if {![matchattr [nick2hand $nick] $vCapsFlagsAllow $chan]} { </code></pre></div>and I replace them with<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $hand $vCapsFlagsAllow $chan] || [isop $nick $chan] || [ishalfop $nick $chan]} { </code></pre></div>I get the error again<br><blockquote class="uncited"><div>[04:02:41] Tcl error [pCapsDetect]: can't read "diff": no such variable</div></blockquote><div class="codebox"><p>Code: </p><pre><code># caps.tcl# set bot user flags to ignore textset vCapsFlagsAllow fo# set text length (excluding spaces) to allow without checkingset vCapsLengthAllow 4# set maximum percentage caps allowed (calculation excludes spaces in text)# greater than 0, less than or equal to 100set vCapsPercentAllow 40# set number of warnings before punishing# integer value equal to or greater than 1set vCapsWarnings 3# set here the mode of punishment# 1 == kick only (after warnings)# 2 == kickban (after warnings)set vCapsPunishMode 1# time in minutes within which a warning remains valid# even after the user is punished, passed offences remain valid for this time period# hence a user could be punished twice for two consecutive offencesset vCapsSinTime 20# if punishment mode 2, set here the time in minutes the ban lastsset vCapsBanTime 10# Set this to 1 to ignore nicks in linesset vIgnoreNick 1bind PUBM - * pCapsDetectproc pCapsDetect {nick uhost hand chan text} {    global vCapsBanTime vCapsFlagsAllow vCapsLengthAllow vCapsPercentAllow    global vCapsPunishMode vCapsSinBin vCapsSinTime vCapsWarnings if {[matchattr $hand $vCapsFlagsAllow $chan] || [isop $nick $chan] || [ishalfop $nick $chan]} {         if {$::vIgnoreNick == 1} {            set nicks [chanlist $chan]            set text [join [ldiff [split $text] $nicks]]         }            set caps [regexp -all -- {[A-Z]} $text]            set total [string length [regsub -all -- {[\s]} $text {}]]            if {$total &gt; $vCapsLengthAllow} {                set percent [expr {$caps * 100.0 / $total}]                if {$percent &gt; $vCapsPercentAllow} {                    set now [unixtime]                    set max [expr {$now - ($vCapsSinTime * 60)}]                    lappend vCapsSinBin(${nick},$chan) $now                    foreach sin $vCapsSinBin(${nick},$chan) {                        if {$sin &gt;= $max} {lappend newlist $sin}                    }                    set vCapsSinBin(${nick},$chan) $newlist                    if {[llength $vCapsSinBin(${nick},$chan)] &gt; $vCapsWarnings} {                        switch -- $vCapsPunishMode {                            1 {}                            2 {                                pushmode $chan +b ${nick}!$uhost                                flushmode $chan                                timer $vCapsBanTime [list pushmode $chan -b ${nick}!$uhost]                            }                            default {return 0}                        }                        putkick $chan $nick "excess caps, you were warned"                    } else {                        set output "*** [llength $vCapsSinBin(${nick},$chan)] WARNING(S) *** within the last $vCapsSinTime minutes for excess caps"                        putserv "PRIVMSG $chan :$nick $output"                    }                }            }        }    }    return 0}proc ldiff {list1 list2 {option -exact}} {   if {$option ne "-nocase"} { set option -exact }   return [lmap x $list1 {expr {[lsearch $option $list2 $x] &lt; 0 ? $x : [continue]}}]}proc lintersect {list1 list2 {option -exact}} {   if {$option ne "-nocase"} { set option -exact }   return [lmap x $list1 {expr {[lsearch $option $list2 $x] &gt;= 0 ? $x : [continue]}}]}putlog "Caps.tcl by arfer is loaded" </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 Dec 06, 2020 12:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-11-09T01:49:37-04:00</updated>

		<published>2020-11-09T01:49:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109140#p109140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109140#p109140"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109140#p109140"><![CDATA[
Sure, that's what I said. <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 Nov 09, 2020 1:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2020-11-08T20:39:56-04:00</updated>

		<published>2020-11-08T20:39:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109136#p109136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109136#p109136"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109136#p109136"><![CDATA[
would this be correct?<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $hand $vCapsFlagsAllow $chan] || [isop $nick $chan] || [ishalfop $nick $chan]} {</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 Nov 08, 2020 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-11-08T04:57:58-04:00</updated>

		<published>2020-11-08T04:57:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109131#p109131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109131#p109131"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109131#p109131"><![CDATA[
In:<div class="codebox"><p>Code: </p><pre><code>if {![matchattr [nick2hand $nick] $vCapsFlagsAllow $chan]} {</code></pre></div>you don't need <em class="text-italics">nick2hand $nick</em> since you already have the <em class="text-italics">hand</em> (user account) from the proc itself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Nov 08, 2020 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-11-07T07:51:20-04:00</updated>

		<published>2020-11-07T07:51:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109130#p109130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109130#p109130"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109130#p109130"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># caps.tcl# set bot user flags to ignore textset vCapsFlagsAllow fo# set text length (excluding spaces) to allow without checkingset vCapsLengthAllow 4# set maximum percentage caps allowed (calculation excludes spaces in text)# greater than 0, less than or equal to 100set vCapsPercentAllow 40# set number of warnings before punishing# integer value equal to or greater than 1set vCapsWarnings 3# set here the mode of punishment# 1 == kick only (after warnings)# 2 == kickban (after warnings)set vCapsPunishMode 1# time in minutes within which a warning remains valid# even after the user is punished, passed offences remain valid for this time period# hence a user could be punished twice for two consecutive offencesset vCapsSinTime 20# if punishment mode 2, set here the time in minutes the ban lastsset vCapsBanTime 10# Set this to 1 to ignore nicks in linesset vIgnoreNick 1bind PUBM - * pCapsDetectproc pCapsDetect {nick uhost hand chan text} {    global vCapsBanTime vCapsFlagsAllow vCapsLengthAllow vCapsPercentAllow    global vCapsPunishMode vCapsSinBin vCapsSinTime vCapsWarnings    if {[botisop $chan]} {        if {![matchattr [nick2hand $nick] $vCapsFlagsAllow $chan]} {         if {$::vIgnoreNick == 1} {            set nicks [chanlist $chan]            set text [join [ldiff [split $text] $nicks]]         }            set caps [regexp -all -- {[A-Z]} $text]            set total [string length [regsub -all -- {[\s]} $text {}]]            if {$total &gt; $vCapsLengthAllow} {                set percent [expr {$caps * 100.0 / $total}]                if {$percent &gt; $vCapsPercentAllow} {                    set now [unixtime]                    set max [expr {$now - ($vCapsSinTime * 60)}]                    lappend vCapsSinBin(${nick},$chan) $now                    foreach sin $vCapsSinBin(${nick},$chan) {                        if {$sin &gt;= $max} {lappend newlist $sin}                    }                    set vCapsSinBin(${nick},$chan) $newlist                    if {[llength $vCapsSinBin(${nick},$chan)] &gt; $vCapsWarnings} {                        switch -- $vCapsPunishMode {                            1 {}                            2 {                                pushmode $chan +b ${nick}!$uhost                                flushmode $chan                                timer $vCapsBanTime [list pushmode $chan -b ${nick}!$uhost]                            }                            default {return 0}                        }                        putkick $chan $nick "excess caps, you were warned"                    } else {                        set output "*** [llength $vCapsSinBin(${nick},$chan)] WARNING(S) *** within the last $vCapsSinTime minutes for excess caps"                        putserv "PRIVMSG $chan :$nick $output"                    }                }            }        }    }    return 0}proc ldiff {list1 list2 {option -exact}} {   if {$option ne "-nocase"} { set option -exact }   return [lmap x $list1 {expr {[lsearch $option $list2 $x] &lt; 0 ? $x : [continue]}}]}proc lintersect {list1 list2 {option -exact}} {   if {$option ne "-nocase"} { set option -exact }   return [lmap x $list1 {expr {[lsearch $option $list2 $x] &gt;= 0 ? $x : [continue]}}]}putlog "Caps.tcl by arfer is loaded" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Nov 07, 2020 7:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2020-11-07T00:06:00-04:00</updated>

		<published>2020-11-07T00:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109128#p109128</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109128#p109128"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109128#p109128"><![CDATA[
[04:02:41] Tcl error [pCapsDetect]: can't read "diff": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sat Nov 07, 2020 12:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-10-21T02:49:26-04:00</updated>

		<published>2020-10-21T02:49:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109091#p109091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109091#p109091"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109091#p109091"><![CDATA[
Thanks to caesar, I'd redone my functions ldiff and lintersect (need tcl8.6):<div class="codebox"><p>Code: </p><pre><code>proc ldiff {list1 list2 {option -exact}} {   if {$option ne "-nocase"} { set option -exact }   return [lmap x $list1 {expr {[lsearch $option $list2 $x] &lt; 0 ? $x : [continue]}}]}proc lintersect {list1 list2 {option -exact}} {   if {$option ne "-nocase"} { set option -exact }   return [lmap x $list1 {expr {[lsearch $option $list2 $x] &gt;= 0 ? $x : [continue]}}]}</code></pre></div>Each proc uses exact search by default, put you can pass <em class="text-italics">-nocase</em> as third argument to have a case insensitive way.<br><br>My original posts:<br><a href="https://forum.eggdrop.fr/Difference-entre-deux-listes-t-1436.html" class="postlink">ldiff</a>, <a href="https://forum.eggdrop.fr/Intersection-de-listes-t-1668.html" class="postlink">lintersect</a>, <a href="https://wiki.eggdrop.fr/Ldiff" class="postlink">wiki page</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Oct 21, 2020 2:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-10-19T11:02:28-04:00</updated>

		<published>2020-10-19T11:02:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109089#p109089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109089#p109089"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109089#p109089"><![CDATA[
Well, I didn't know lmap <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> I'll have a look on it.<br><br>And as I said before: I intentionnaly choose a case-sensitive mode, otherwise I'd used a different approach with <em class="text-italics">lsearch</em> and not <em class="text-italics">in</em>.<br><br>BTW, gonna learn lmap, thanks a lot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 19, 2020 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-10-19T10:35:04-04:00</updated>

		<published>2020-10-19T10:35:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109088#p109088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109088#p109088"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109088#p109088"><![CDATA[
Instead of your <em class="text-italics">ldiff</em> you can use <em class="text-italics">lmap</em> and <em class="text-italics">lsearch</em> and can make it case insensitive if you want:<div class="codebox"><p>Code: </p><pre><code>set diff [lmap x $list1{expr {[lsearch -nocase $list2 $x] &lt; 0 ? $x : [continue]}}]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Oct 19, 2020 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-10-19T06:06:30-04:00</updated>

		<published>2020-10-19T06:06:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109087#p109087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109087#p109087"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109087#p109087"><![CDATA[
You can try this:<div class="codebox"><p>Code: </p><pre><code># caps.tcl# set bot user flags to ignore textset vCapsFlagsAllow fo# set text length (excluding spaces) to allow without checkingset vCapsLengthAllow 4# set maximum percentage caps allowed (calculation excludes spaces in text)# greater than 0, less than or equal to 100set vCapsPercentAllow 40# set number of warnings before punishing# integer value equal to or greater than 1set vCapsWarnings 3# set here the mode of punishment# 1 == kick only (after warnings)# 2 == kickban (after warnings)set vCapsPunishMode 1# time in minutes within which a warning remains valid# even after the user is punished, passed offences remain valid for this time period# hence a user could be punished twice for two consecutive offencesset vCapsSinTime 20# if punishment mode 2, set here the time in minutes the ban lastsset vCapsBanTime 10# Set this to 1 to ignore nicks in linesset vIgnoreNick 1bind PUBM - * pCapsDetectproc pCapsDetect {nick uhost hand chan text} {    global vCapsBanTime vCapsFlagsAllow vCapsLengthAllow vCapsPercentAllow    global vCapsPunishMode vCapsSinBin vCapsSinTime vCapsWarnings    if {[botisop $chan]} {        if {![matchattr [nick2hand $nick] $vCapsFlagsAllow $chan]} {if {$::vIgnoreNick == 1} {set nicks [chanlist $chan]set text [join [ldiff [split $text] $nicks]]}            set caps [regexp -all -- {[A-Z]} $text]            set total [string length [regsub -all -- {[\s]} $text {}]]            if {$total &gt; $vCapsLengthAllow} {                set percent [expr {$caps * 100.0 / $total}]                if {$percent &gt; $vCapsPercentAllow} {                    set now [unixtime]                    set max [expr {$now - ($vCapsSinTime * 60)}]                    lappend vCapsSinBin(${nick},$chan) $now                    foreach sin $vCapsSinBin(${nick},$chan) {                        if {$sin &gt;= $max} {lappend newlist $sin}                    }                    set vCapsSinBin(${nick},$chan) $newlist                    if {[llength $vCapsSinBin(${nick},$chan)] &gt; $vCapsWarnings} {                        switch -- $vCapsPunishMode {                            1 {}                            2 {                                pushmode $chan +b ${nick}!$uhost                                flushmode $chan                                timer $vCapsBanTime [list pushmode $chan -b ${nick}!$uhost]                            }                            default {return 0}                        }                        putkick $chan $nick "excess caps, you were warned"                    } else {                        set output "*** [llength $vCapsSinBin(${nick},$chan)] WARNING(S) *** within the last $vCapsSinTime minutes for excess caps"                        putserv "PRIVMSG $chan :$nick $output"                    }                }            }        }    }    return 0}proc ldiff {list1 list2} {   foreach element $list1 {      if { !($element in $list2) } {         lappend diff $element      }   }   return $diff}# eof </code></pre></div>Short explanation: if vIgnoreNick is setted to 1, I remove all nicks (from chanlist) in the text.<br>The ldiff proc is case sensitive, and I keep it like this for a simple thing:<br>If <em class="text-italics">CrazyCat</em> is on your channel, we have 3 options:<br>- user type "crazycat" =&gt; no caps, the ratio is better for him<br>- user type "CrazyCat" =&gt; exact match, nick is not in stats<br>- user type "CRAZYCAT" =&gt; he's shouting, ratio will be worst<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 19, 2020 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-10-18T23:47:22-04:00</updated>

		<published>2020-10-18T23:47:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109085#p109085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109085#p109085"/>
		<title type="html"><![CDATA[help in caps kicker tcl for arfer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109085#p109085"><![CDATA[
Perhaps You could add another line to check for nick and caps in nick to exempt from caps checker<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Oct 18, 2020 11:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
