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

	<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>2005-04-18T14:13:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-18T10:30:12-04:00</updated>

		<published>2005-04-18T10:30:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48261#p48261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48261#p48261"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48261#p48261"><![CDATA[
I was bored, I know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br>I will debug the code later (so assume it has error and might even not run at all ^^)<br>Any suggestions regarding the features?<br><br>PS: first debugging done.<br><br>PPS: code moved to <a href="http://forum.egghelp.org/viewtopic.php?t=9434" class="postlink">http://forum.egghelp.org/viewtopic.php?t=9434</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 18, 2005 10:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-18T14:13:43-04:00</updated>

		<published>2005-04-17T14:55:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48214#p48214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48214#p48214"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48214#p48214"><![CDATA[
So, something I wrote together in a few minutes, haven't tested it yet. Do you think thats a good start?<br>If this works it might be even CPU friendly enough for a bind to pubm.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 17, 2005 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-17T13:56:25-04:00</updated>

		<published>2005-04-17T13:56:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48207#p48207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48207#p48207"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48207#p48207"><![CDATA[
I already had an idea about splitten the text in each control char like:<br>set bold [split $text \002]<br>set color [split $text \003]<br>in bold each element with index 1,3,5, etc will contain affected chars (after stripping other control codes) for colors, i would do a ^[0-9]{1,2},?[0-9]{0,2} regsub to delete the color code and the result of the regsub tells me, if it was a start or close tag. But however, it would be easier to start with some known working code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 17, 2005 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-17T13:48:36-04:00</updated>

		<published>2005-04-17T13:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48205#p48205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48205#p48205"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48205#p48205"><![CDATA[
Then my guess is to use string index for $text, incr the index by 1 everytime you pass the foreach loop, and check the control character in each index, and if match check the control character in following the text after the control character. Set a list of characters you wouldn't want to allow.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Apr 17, 2005 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-17T11:43:10-04:00</updated>

		<published>2005-04-17T11:43:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48201#p48201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48201#p48201"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48201#p48201"><![CDATA[
the font that someone is using will not affect how many characters the control will affect.<br>ex.: "Nick\002:\002 hello"<br>will have 1 affected character which is ":" no matter what font you use.<br>ex.: "\002\0034stop it !\003\002"<br>will have 14 affected characters, twice "stopit!", no matter what font you use.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 17, 2005 11:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-17T09:37:39-04:00</updated>

		<published>2005-04-17T09:37:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48184#p48184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48184#p48184"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48184#p48184"><![CDATA[
Depends also upon the font you are using. Plus I've seen COLORS when used with BOLD they mess up. Or alot of control codes used in tsunami floods usually do too as we know. Don't match individual ones, try certain combinations of all 4-5 of them. <br><br>if {[string match "*[boldcode][reversecode]*"]} and {total_codes &gt;= bla}<br>if {[string match "*[boldcode][underlinecode]*"]} and {total_codes &gt;= bla}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Apr 17, 2005 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-16T18:51:01-04:00</updated>

		<published>2005-04-16T18:51:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48166#p48166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48166#p48166"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48166#p48166"><![CDATA[
I don't think there's a script that does the check like that, it's a nice idea though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Apr 16, 2005 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-16T17:26:54-04:00</updated>

		<published>2005-04-16T17:26:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48163#p48163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48163#p48163"/>
		<title type="html"><![CDATA[count characters affected by control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48163#p48163"><![CDATA[
We know all the scripts that count conrol codes and kicks them at a given amount.<br>But however, I feel sorry for guys beeing kicked from 2 lines that contain only 5 bold characters and offers post 3 lines the whole line in extrem red and bold, so I came up with the idea it would be more fair, if we would count how many characters are really affected by control codes.<br><br>I have been looking throught the forum via search, but couldn't find something like that and haven't seen something like that before. Does anybody know if there is already a script or script part doing this?<br>I would apprectiate any existing code, if there is none, I would probably create one, but I don't want to invent the wheel twice, you know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. I only hope the CPU usage will be reasonable @_o.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Apr 16, 2005 5:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
