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

	<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-20T12:30:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-20T12:30:39-04:00</updated>

		<published>2004-05-20T12:30:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36474#p36474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36474#p36474"/>
		<title type="html"><![CDATA[It works!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36474#p36474"><![CDATA[
I had been busy with other scripts, so I didn't had<br>time for this one, as I had given up hope, but I finally<br>thought that I will do this, and I will make it work!<br><br>Well, finally it did, and I tested it to see it was working perfect.<br><br>As they say, "Everything which has a problem, has a solution!"<br>But, sometimes the solution is very hard, harder than the problem itself.<br><br>I think I found the problem.<br>And that filtering thing was just a hoax.<br>Eggdrops doesn't filter ASCII Codes in TEXTS/ACTIONS or even NOTICES.<br><br>There was a problem with the slashes "\" and the brackets needed<br>to be used as I saw multiple search items when you need to use<br>with regexp like control codes you need to enlist them in { } brackets<br>rather than quotation marks.<br><br>Well anyway the script is absolutely fine, and working terrific now.<br>Here is the code for each and everyone of you who would want to<br>use it, feel free:<br><br><div class="codebox"><p>Code: </p><pre><code>#Settings# In what file do you want the kick number records # to be stored? (Shows how many kicks have been done# withs this script)set kickno "kicknum.dat" #Set the channels to activate excessive ascii text kick onset asciichans "#chatzone #funchat #giggles"#On how much maximum ascii chars will the person be #kicked/banned onset maxascii 30#Set the bantime, for how long should the person be#banned for (in mins)set asciibantime 30########## Don't edit anything below this ##########bind pubm - * ascii:pubmsgproc ascii:pubmsg {nick uhost hand chan text} {  global botnick asciichans maxascii asciibantime    set asciiban "*!*@[lindex [split $uhost @] 1]"    set file [open $::kickno r]    set tilnow "[gets $file]"    catch {close $file}    set totalkicks [expr $tilnow]  if {(([lsearch -exact [string tolower $asciichans] [string tolower $chan]] != -1) || ($asciichans == "*"))} {    set arg [ctrl:filter $text]    set asciitext [regexp -all {[\x21\x23-\x26\x2A\x2B\x2D\x3F\x40\x5E\x7E\x80\x81\x83\x86-\x90\x95-\x9F\xA1-\xAC\xAE-\xB3\xB5-\xFF]} $arg]   if {([botisop $chan]) &amp;&amp; (![isop $nick $chan]) &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (![matchattr $hand mnof|mnof $chan]) &amp;&amp; ([onchan $nick $chan]) &amp;&amp; ($asciitext &gt; $maxascii)} {putquick "MODE $chan +b $asciiban"putquick "KICK $chan $nick :0,1 Excessive ASCII Text Flood Kick 12,0 - You exceeded the limit of2 $maxascii ascii characters, 12by typing a 12text of2 *$asciitext* 12ascii characters. 12It would be 2appreciated 12if you would use normal characters, and 2not ASCII codes.2 - (Kick #$totalkicks)"      timer $asciibantime "pushmode $chan -b $asciiban"      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} $str "" str  return $str}</code></pre></div>(I have set the ascii code matching values for regexp, according to my needs, it should be the best matching ones I could find)<br><br>Note: If you would like to edit the matching ascii codes, yourself (i.e. personalize which codes you want to be listed as ascii in the dectector) if you know tcl, in the REGEXP command you can mention more codes or remove more codes.<br><br><a href="http://www.torsten-horn.de/techdocs/ascii.htm" class="postlink">http://www.torsten-horn.de/techdocs/ascii.htm</a><br><br>Here is the weblink, where you can find the ascii, html hex conversions (like x80 =  €, A3 = £ etc.) for the ascii text codes, so you can edit them in the script according to your needs if you want to.<br><br>Or if you simply want only the full ASCII full range then<br>replace this line:<br><div class="codebox"><p>Code: </p><pre><code>    set asciitext [regexp -all {[\x21\x23-\x26\x2A\x2B\x2D\x3F\x40\x5E\x7E\x80\x81\x83\x86-\x90\x95-\x9F\xA1-\xAC\xAE-\xB3\xB5-\xFF]} $arg]</code></pre></div>with this line:<br><div class="codebox"><p>Code: </p><pre><code>    set asciitext [regexp -all {[\x80-\xFF]} $arg]</code></pre></div>That should do it.<br>Now you will have the full range.<br><br>Thanks everyone for your help!<br>Especially the mysterious "user".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu May 20, 2004 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-09T11:08:44-04:00</updated>

		<published>2004-05-09T11:08:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36225#p36225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36225#p36225"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36225#p36225"><![CDATA[
Hi,<br><br>I found these listed problems from the eggdrop.tar.gz file<br>in the app-problems.html file. This might be the reason:<br><blockquote class="uncited"><div>High-bit characters are being filtered from channel names. This is a fault of the Tcl interpreter, and not Eggdrop. The Tcl interpreter filters the characters when it reads a file for interpreting. Update your Tcl to version 8.1 or higher.<br><br>Version 8.1 of Tcl doesn't support unicode characters, for example, è. If those characters are handled in a script as text, you run into errors. Eggdrop can't handle these errors at the moment.</div></blockquote>I guess so, lots of admins use the latest ver of tcl which is 8.1 and I guess so that maybe causing a problem as well.<br><br>So, I guess I'll leave the ascii codes script alone.<br>The one you gave me as well to work, says "0" invalid integer/number etc.<br>And doesn't work, if I use the exact same one you pasted.<br><br>This wasn't really worth it as well I guess.<br>Mostly people dont use ASCII, as they dont know the codes, only maybe in scripts.<br><br>Thanks anyways!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun May 09, 2004 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-05-05T07:17:29-04:00</updated>

		<published>2004-05-05T07:17:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36129#p36129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36129#p36129"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36129#p36129"><![CDATA[
No.<br>Check <a href="http://tcl.tk/man/tcl8.5/TclCmd/Tcl.htm#M16" class="postlink">http://tcl.tk/man/tcl8.5/TclCmd/Tcl.htm#M16</a> for details.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed May 05, 2004 7:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-05T00:21:36-04:00</updated>

		<published>2004-05-05T00:21:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36125#p36125</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36125#p36125"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36125#p36125"><![CDATA[
Thanks sir, I will look into it.<br><br>Here is a link I foud for the conversion of ascii codes<br>from html format into into aplha. numerical, codes. <br>You can see this link, and view the second last table<br>on the page.<br><br><a href="http://www.torsten-horn.de/techdocs/ascii.htm" class="postlink">http://www.torsten-horn.de/techdocs/ascii.htm</a><br><br>Can I also use &amp;iexcl, &amp;yen, &amp;copy, &amp;aring, etc bla bla in the other two<br>tables (from 160-255) as well and include them into these variables, such as<br><br>"\[\x80\x83\x86\x8A\x8C\x9A\x9C\x9F\xA2\xA3\xA5\xA7\xA9\xAE\xB5\xB6\xC0-\xD6\xD8-\xF6\xF8-\xFF\iexcl\yen\reg\deg\acute\micro\]"<br><br>Would this code work as well? and would detect them?<br>Logically I think it should, if possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed May 05, 2004 12:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-05-04T19:03:57-04:00</updated>

		<published>2004-05-04T19:03:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36120#p36120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36120#p36120"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36120#p36120"><![CDATA[
The regexp returns the number of what you call "ascii codes", so there's no need for 'string length'. My comment about 'string length' was just a joke.  Read my code one more time...all you need to do is add the kicking code and import that global variable i'm comparing $num to <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=2878">user</a> — Tue May 04, 2004 7:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-02T14:58:06-04:00</updated>

		<published>2004-05-02T14:58:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36041#p36041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36041#p36041"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36041#p36041"><![CDATA[
Hi, this procecedure is not working.<br><br><blockquote class="uncited"><div>proc asciicodes {nick uhost hand chan text} {<br>  global botnick maxascii<br>       set num [regexp -all "\[\x80-\xFF\]" $text]<br>       set asciicodes [string length $num]<br>    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; [$asciicodes &gt; $maxascii]} {</div></blockquote><br>I cound't get this script working.<br>The string length for the ascii code count $asciicodes retrieves output like 1 always or 2 sometimes thats it.<br><br>How can I make it to count all the ascii codes in the string and make it like a numerical value, like if there 100 lines in the text, 20 are normal text, 80 are ascii codes, i want it to count the 80 ascii codes in string length and assign it to a variable.<br><br>Then I can compare with my defined variable if they are excessive or not then I can kick/ban that person for doing so.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun May 02, 2004 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-01T11:03:38-04:00</updated>

		<published>2004-05-01T11:03:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36009#p36009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36009#p36009"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36009#p36009"><![CDATA[
Thanks for the script, I'll look into it and notify you if I reach a problem again.<br><br>As for the bans I just like a little better style -o+bb, from a script which I saw, makes the bot look a bit more human or like a person using a script, rather than a normal eggdrop.<br><br>Secondly yeah stringlength is a good idea to count the total the ascii codes in. The normal addition method is very messy.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat May 01, 2004 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-28T15:18:09-04:00</updated>

		<published>2004-04-28T15:18:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35927#p35927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35927#p35927"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35927#p35927"><![CDATA[
I suspect you're having a problem with the encoding used when reading your script in (try '.tcl info body yourproc' in dcc and check what those "forbidden" chars look like)<br>Try something like this instead (all chars represented by escape sequences) <div class="codebox"><p>Code: </p><pre><code>proc asciicodes {nick uhost hand chan text} {# do these checks first as there's no point in doing all that work# if you end up not kicking them over this :Pif {[botisop $chan]&amp;&amp;![isop $nick $chan]&amp;&amp;![isvoice $nick $chan]&amp;&amp;![matchattr $hand mnf|mnf $chan]} {# use "\[\x80-\xFF\]" here if you want the entire high range:set num [regexp -all "\[\x80\x83\x86\x8A\x8C\x9A\x9C\x9F\xA2\xA3\xA5\xA7\xA9\xAE\xB5\xB6\xC0-\xD6\xD8-\xF6\xF8-\xFF\]" $text]if {$num&gt;$ascii_maxchar} {# read the kick counter and kick}}}</code></pre></div>Also, there's no point in setting both bans like you do...the second one makes the first one redundant.<br>(btw: everything on irc is ascii codes, so you might aswell use 'string length' to do the counting ;P)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Apr 28, 2004 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-04-26T03:04:24-04:00</updated>

		<published>2004-04-26T03:04:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35833#p35833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35833#p35833"/>
		<title type="html"><![CDATA[My 'Excessive ASCII Codes Kick' Script is not working!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35833#p35833"><![CDATA[
Hello,<br><br>I have built this script from seeing other scripts.<br>I have a same detto type of script for EXCESSIVE CONTROL CODES<br>which includes bold, color, reverse, inverse and plain. That script<br>works fine and has no problem.<br><br>This is alike it based on the same algorithm only the search words/keys<br>are changed as these are ascii not control codes.<br><br>When I execute this script, My bot doesn't kick on excessive ascii codes.<br>I check in DCC with the BOT, it doesn't give any error while executing this script as well, infact I get no msg while the script executes.<br><br>I don't know what is happening, I get no result output from the bot.<br>Do you think that eggdrops ignore ASCII in TCL?<br><br>I have no idea... what is happening and why doesn't this script work.<br>Please help me.<br><br><br>HERE IS THE SCRIPT:<br><blockquote class="uncited"><div><br>###########################################<br>## ------------------------------------- ##<br>## 25. Excessive ASCII Codes Kick Script ##<br>## ------------------------------------- ##<br>###########################################<br><br><br># This variable is used to determine MAXIMUM VALUES allowed for ASCII codes.<br># If the maximum value of control codes detected in a text/action is great than or equal to<br># this variable then the script will kick/ban that user.<br>set ascii_maxchar 20<br><br><br>######### Please don't edit anything below unless you know what you are doing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> #########<br><br>bind pub - * asciicodes<br>bind pubm - * asciicodes<br>bind ctcp - ACTION ctcp_asciicodes<br><br>proc asciicodes {nick uhost hand chan text} {<br>global botnick ascii_maxchar ascii_chans<br>       set file [open $::kickno r]<br>       set tilnow "[gets $file]"<br>       catch {close $file}<br>       set totalkicks [expr $tilnow]<br>if {[isbotnick $nick]} {return 0}<br>   if {[string match \[^!-ÿ\] $text]} {<br>set asciibanhost1 "*!*@[lindex [split $uhost @] 1]"<br>set asciibanhost2 "*!*$uhost"<br>set asciilength [string length $text]<br>set ascii1 0; set ascii2 0; set ascii3 0; set ascii4 0; set ascii5 0; set ascii6 0; set ascii7 0; set ascii8 0; set ascii9 0; set ascii10 0<br>set ascii11 0; set ascii12 0; set ascii13 0; set ascii14 0; set ascii15 0; set ascii16 0; set ascii17 0; set ascii18 0; set ascii19 0; set ascii20 0<br>set ascii21 0; set ascii22 0; set ascii23 0; set ascii24 0; set ascii25 0; set ascii26 0; set ascii27 0; set ascii28 0; set ascii29 0; set ascii30 0<br>set ascii31 0; set ascii32 0; set ascii33 0; set ascii34 0; set ascii35 0; set ascii36 0; set ascii37 0; set ascii38 0; set ascii39 0; set ascii40 0<br>set ascii41 0; set ascii42 0; set ascii43 0; set ascii44 0; set ascii45 0; set ascii46 0; set ascii47 0; set ascii48 0; set ascii49 0; set ascii50 0<br>set ascii51 0; set ascii52 0; set ascii53 0; set ascii54 0; set ascii55 0; set ascii56 0; set ascii57 0; set ascii58 0; set ascii59 0; set ascii60 0<br>set ascii61 0; set ascii62 0; set ascii63 0; set ascii64 0; set ascii65 0; set ascii66 0; set ascii67 0; set ascii68 0; set ascii69 0; set ascii70 0<br>set ascii71 0; set ascii72 0; set ascii73 0; set ascii74 0; set ascii75 0; set ascii76 0; set ascii77 0; set ascii78 0<br>   for {set j 0} {$j &lt; $asciilength} {incr j} {<br>if {[string index $text $j] == "€"} {incr ascii1}<br>if {[string index $text $j] == "ƒ"} {incr ascii2}<br>if {[string index $text $j] == "†"} {incr ascii3}<br>if {[string index $text $j] == "Š"} {incr ascii4}<br>if {[string index $text $j] == "Œ"} {incr ascii5}<br>if {[string index $text $j] == "š"} {incr ascii6}<br>if {[string index $text $j] == "œ"} {incr ascii7}<br>if {[string index $text $j] == "Ÿ"} {incr ascii8}<br>if {[string index $text $j] == "¢"} {incr ascii9}<br>if {[string index $text $j] == "£"} {incr ascii10}<br>if {[string index $text $j] == "¥"} {incr ascii11}<br>if {[string index $text $j] == "§"} {incr ascii12}<br>if {[string index $text $j] == "©"} {incr ascii13}<br>if {[string index $text $j] == "®"} {incr ascii14}<br>if {[string index $text $j] == "µ"} {incr ascii15}<br>if {[string index $text $j] == "¶"} {incr ascii16}<br>if {[string index $text $j] == "À"} {incr ascii17}<br>if {[string index $text $j] == "Á"} {incr ascii18}<br>if {[string index $text $j] == "Â"} {incr ascii19}<br>if {[string index $text $j] == "Ã"} {incr ascii20}<br>if {[string index $text $j] == "Ä"} {incr ascii21}<br>if {[string index $text $j] == "Å"} {incr ascii22}<br>if {[string index $text $j] == "Æ"} {incr ascii23}<br>if {[string index $text $j] == "Ç"} {incr ascii24}<br>if {[string index $text $j] == "È"} {incr ascii25}<br>if {[string index $text $j] == "É"} {incr ascii26}<br>if {[string index $text $j] == "Ê"} {incr ascii27}<br>if {[string index $text $j] == "Ë"} {incr ascii28}<br>if {[string index $text $j] == "Ì"} {incr ascii29}<br>if {[string index $text $j] == "Í"} {incr ascii30}<br>if {[string index $text $j] == "Î"} {incr ascii31}<br>if {[string index $text $j] == "Ï"} {incr ascii32}<br>if {[string index $text $j] == "Ð"} {incr ascii33}<br>if {[string index $text $j] == "Ñ"} {incr ascii34}<br>if {[string index $text $j] == "Ò"} {incr ascii35}<br>if {[string index $text $j] == "Ó"} {incr ascii36}<br>if {[string index $text $j] == "Ô"} {incr ascii37}<br>if {[string index $text $j] == "Õ"} {incr ascii38}<br>if {[string index $text $j] == "Ö"} {incr ascii39}<br>if {[string index $text $j] == "Ø"} {incr ascii40}<br>if {[string index $text $j] == "Ù"} {incr ascii41}<br>if {[string index $text $j] == "Ú"} {incr ascii42}<br>if {[string index $text $j] == "Û"} {incr ascii43}<br>if {[string index $text $j] == "Ü"} {incr ascii44}<br>if {[string index $text $j] == "Ý"} {incr ascii45}<br>if {[string index $text $j] == "Þ"} {incr ascii46}<br>if {[string index $text $j] == "ß"} {incr ascii47}<br>if {[string index $text $j] == "à"} {incr ascii48}<br>if {[string index $text $j] == "á"} {incr ascii49}<br>if {[string index $text $j] == "â"} {incr ascii50}<br>if {[string index $text $j] == "ã"} {incr ascii51}<br>if {[string index $text $j] == "ä"} {incr ascii52}<br>if {[string index $text $j] == "å"} {incr ascii53}<br>if {[string index $text $j] == "æ"} {incr ascii54}<br>if {[string index $text $j] == "ç"} {incr ascii55}<br>if {[string index $text $j] == "è"} {incr ascii56}<br>if {[string index $text $j] == "é"} {incr ascii57}<br>if {[string index $text $j] == "ê"} {incr ascii58}<br>if {[string index $text $j] == "ë"} {incr ascii59}<br>if {[string index $text $j] == "ì"} {incr ascii60}<br>if {[string index $text $j] == "í"} {incr ascii61}<br>if {[string index $text $j] == "î"} {incr ascii62}<br>if {[string index $text $j] == "ï"} {incr ascii63}<br>if {[string index $text $j] == "ð"} {incr ascii64}<br>if {[string index $text $j] == "ñ"} {incr ascii65}<br>if {[string index $text $j] == "ò"} {incr ascii66}<br>if {[string index $text $j] == "ó"} {incr ascii67}<br>if {[string index $text $j] == "ô"} {incr ascii68}<br>if {[string index $text $j] == "õ"} {incr ascii69}<br>if {[string index $text $j] == "ö"} {incr ascii70}<br>if {[string index $text $j] == "ø"} {incr ascii71}<br>if {[string index $text $j] == "ù"} {incr ascii72}<br>if {[string index $text $j] == "ú"} {incr ascii73}<br>if {[string index $text $j] == "û"} {incr ascii74}<br>if {[string index $text $j] == "ü"} {incr ascii75}<br>if {[string index $text $j] == "ý"} {incr ascii76}<br>if {[string index $text $j] == "þ"} {incr ascii77}<br>if {[string index $text $j] == "ÿ"} {incr ascii78}<br>}<br>set totalascii_codes [expr $ascii1 + $ascii2 + $ascii3 + $ascii4 + $ascii5 + $ascii6 + $ascii7 + $ascii8 + $ascii9 + $ascii10 + $ascii11 + $ascii12 + $ascii13 + $ascii14 + $ascii15 + $ascii16 + $ascii17 + $ascii18 + $ascii19 + $ascii20 + $ascii21 + $ascii22 + $ascii23 + $ascii24 + $ascii25 + $ascii26 + $ascii27 + $ascii28 + $ascii29 + $ascii30 + $ascii31 + $ascii32 + $ascii33 + $ascii34 + $ascii35 + $ascii36 + $ascii37 + $ascii38 + $ascii39 + $ascii40 + $ascii41 + $ascii42 + $ascii43 + $ascii44 + $ascii45 + $ascii46 + $ascii47 + $ascii48 + $ascii49 + $ascii50 + $ascii51 + $ascii52 + $ascii53 + $ascii54 + $ascii55 + $ascii56 + $ascii57 + $ascii58 + $ascii59 + $ascii60 + $ascii61 + $ascii62 + $ascii63 + $ascii64 + $ascii65 + $ascii66 + $ascii67 + $ascii68 + $ascii69 + $ascii70 + $ascii71 + $ascii72 + $ascii73 + $ascii74 + $ascii75 + $ascii76 + $ascii77 + $ascii78]<br>         if {([botisop $chan]) &amp;&amp; (![isop $nick $chan]) &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (![matchattr $hand mnf|mnf $chan]) &amp;&amp; ($totalascii_codes &gt;= $ascii_maxchar)} {<br>putquick "MODE $chan -o+bb $nick $asciibanhost2 $asciibanhost1"<br>putquick "KICK $chan $nick :0,1 Excessive ASCII Codes Kick 12,0- Your 2text/action 12exceeded2 $ascii_maxchar ascii code characters. 12Total 2Ascii codes 12detected:2 $totalascii_codes. 12Please 2*do not* use ascii codes 12to display as a2 text or action 12in this channel, because they are2 difficult to read.2 - (Kick #$totalkicks)"<br>timer 30 "putserv \"mode $chan -bb $asciibanhost2 $asciibanhost1\""<br>return 0 <br>      }<br>         }<br>}<br><br><br>proc ctcp_asciicodes {nick uhost hand chan keyword rest} {<br> asciicodes $nick $uhost $hand $chan $rest<br>}<br></div></blockquote>[/quote]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Apr 26, 2004 3:04 am</p><hr />
]]></content>
	</entry>
	</feed>
