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

	<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>2004-05-17T02:02:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-17T02:02:36-04:00</updated>

		<published>2004-05-17T02:02:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36394#p36394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36394#p36394"/>
		<title type="html"><![CDATA[Little Prob. with Chanpro Caps Check.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36394#p36394"><![CDATA[
Hi,<br><br>You can utilize this script, instead of the one you are using.<br>This script has been posted before on a thread or two in this<br>forum as well.<br><br>I have modified it according to my needs and it is good<br>and effective script which only kicks for CAPS within the <br>range of \[A-Z\].<br><br><div class="codebox"><p>Code: </p><pre><code>#Set the channels here where you wish the kick to be activated on.#Usage set capschans "#channel1, #channel2, #channel3"set capschans "#funchat"#Set this to the minimum text size, before it will actset capsmin 70# Minimum percentage of CAPS detected from the full textset capslen 65#Set the bantime for the CAPS kickset capsbantime 30bind pubm - * pubm:capslockproc pubm:capslock {nick uhost hand chan arg} { global botnick capschans capsmin capslen capsbantime if {[string length $arg] &lt; $capsmin} {return 0}  set capsban "*!*@[lindex [split $uhost @] 1]"  set arg [ctrl:filter $arg]  set maxcaps "[string length $arg]"  regsub -all {[A-Z]} $arg "" counted  set countcaps [string length $counted]  set capsper [expr (($maxcaps - $countcaps) * 100) / $maxcaps] if {(([lsearch -exact [string tolower $capschans] [string tolower $chan]] != -1)  || ($capschans == "*"))} {  if {([botisop $chan]) &amp;&amp; (![isop $nick $chan]) &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (![matchattr $hand mnf|mnf $chan]) &amp;&amp; ([onchan $nick $chan]) &amp;&amp; ($capsper &gt; $capslen)} {    set capsrange "[string range $capsper 0 100]%"    putquick "MODE $chan +b $capsban"    putquick "KICK $chan $nick :0,1 Excessive CAPS Text Kick 12,0 - 12Exceeded the limit of2 $capslen% percent 12of caps by typing2 *$maxcaps* capital characters, 12at a rate of2 $capsrange percent. 12Please turn *off* your 2caps lock switch, 12which is located 2left to the 'A' button 12on your keyboard."    timer $capsbantime "pushmode $chan -b $capsban"    return 0    }  }}## Thanks to ppslim for this filterproc ctrl:filter {str} {  regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str  return $str}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon May 17, 2004 2:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-05-16T01:09:14-04:00</updated>

		<published>2004-05-16T01:09:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36370#p36370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36370#p36370"/>
		<title type="html"><![CDATA[Little Prob. with Chanpro Caps Check.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36370#p36370"><![CDATA[
Yes, either contact the author of the script or do it yourself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun May 16, 2004 1:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-15T20:09:50-04:00</updated>

		<published>2004-05-15T20:09:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36365#p36365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36365#p36365"/>
		<title type="html"><![CDATA[Little Prob. with Chanpro Caps Check.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36365#p36365"><![CDATA[
Hi, im new to the forum and new to tcl, my main problem is that the Caps Check of chanpro, works perfect, except that it kicks user when they type for example "****************************************"<br><br>I only want the script to kick people using Letter Caps, ABCDEFGHIJKLMOPQRSTUVWXYZ , not other characters.<br><br>There is any way to fix this?.<br><br>Thanx in adv.<p>Statistics: Posted by Guest — Sat May 15, 2004 8:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
