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

	<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-07-17T12:18:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-17T12:18:32-04:00</updated>

		<published>2005-07-17T12:18:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52694#p52694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52694#p52694"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52694#p52694"><![CDATA[
fixed:<br><div class="codebox"><p>Code: </p><pre><code>proc mirc2html str {set re {([\002\017\026\037]|[\003]{1}[0-9]{0,2}[\,]{0,1}[0-9]{0,2})}arrayset colors { 0 white   1 black    2 navy    3 green              4 red     5 maroon   6 purple  7 olive             8 yellow  9 lime    10 teal   11 aqua             12 blue   13 fuchsia 14 gray   15 silver}set numtags 0; set bold 0while {[regexp -indices $re $str -&gt; idxs]} {set b [lindex $idxs 0]set e [lindex $idxs 1]set sub [string range $str $b $e]switch [string index $sub 0] {"\002" {if !$bold {set tag "&lt;span style=\"font-weight:bold\"&gt;"set bold 1} { set tag "&lt;span style=\"font-weight:normal\"&gt;"set bold 0}incr numtags}"\017" {set tag [string repeat "&lt;/span&gt;" $numtags]set numtags 0}"\026" {set tag [string repeat "&lt;/span&gt;" $numtags]append tag "&lt;span style=\"color:white;background-color:black\"&gt;"set numtags 1}"\037" {set tag "&lt;span style=\"text-decoration:underline\"&gt;" incr numtags}"\003" {set fg [lindex [split [string range $sub 1 e] ,] 0]set bg [lindex [split [string range $sub 1 e] ,] 1]if {$fg != "" || $bg != ""} {if {$fg &gt; 15 || $bg &gt; 15} {set tag "&lt;span&gt;"} elseif {$fg != "" &amp;&amp; $bg != ""} {set tag "&lt;span style=\"color:$colors($fg);background-color:$colors($bg)\"&gt;"} elseif {$fg != "" &amp;&amp; $bg == ""} {set tag "&lt;span style=\"color:$colors($fg)\"&gt;"} else {set tag "&lt;span style=\"background-color:$colors($bg)\"&gt;"}incr numtags} {set tag [string repeat "&lt;/span&gt;" $numtags]set numtags 0}}}set str [string replace $str $b $e $tag]}append str [string repeat "&lt;/span&gt;" $numtags]return $str}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jul 17, 2005 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scarface]]></name></author>
		<updated>2005-07-17T07:04:44-04:00</updated>

		<published>2005-07-17T07:04:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52685#p52685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52685#p52685"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52685#p52685"><![CDATA[
hm, the bold closing didnt seem to work<br><br>if it was \002hi\002 there it would be <strong class="text-strong">hi there</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6466">scarface</a> — Sun Jul 17, 2005 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scarface]]></name></author>
		<updated>2005-07-17T06:58:09-04:00</updated>

		<published>2005-07-17T06:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52684#p52684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52684#p52684"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52684#p52684"><![CDATA[
thank you very much <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6466">scarface</a> — Sun Jul 17, 2005 6:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-17T03:40:06-04:00</updated>

		<published>2005-07-17T03:40:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52677#p52677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52677#p52677"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52677#p52677"><![CDATA[
here you go:<br><div class="codebox"><p>Code: </p><pre><code>proc mirc2html str {set re {([\002\017\026\037]|[\003]{1}[0-9]{0,2}[\,]{0,1}[0-9]{0,2})}arrayset colors { 0 white   1 black    2 navy    3 green              4 red     5 maroon   6 purple  7 olive             8 yellow  9 lime    10 teal   11 aqua             12 blue   13 fuchsia 14 gray   15 silver}set numtags 0while {[regexp -indices $re $str -&gt; idxs]} {set b [lindex $idxs 0]set e [lindex $idxs 1]set sub [string range $str $b $e]switch [string index $sub 0] {"\002" {set tag "&lt;span style=\"font-weight:bold\"&gt;" incr numtags}"\017" {set tag [string repeat "&lt;/span&gt;" $numtags]set numtags 0}"\026" {set tag [string repeat "&lt;/span&gt;" $numtags]append tag "&lt;span style=\"color:white;background-color:black\"&gt;"set numtags 1}"\037" {set tag "&lt;span style=\"text-decoration:underline\"&gt;" incr numtags}"\003" {set fg [lindex [split [string range $sub 1 e] ,] 0]set bg [lindex [split [string range $sub 1 e] ,] 1]if {$fg != "" || $bg != ""} {if {$fg &gt; 15 || $bg &gt; 15} {set tag "&lt;span&gt;"} elseif {$fg != "" &amp;&amp; $bg != ""} {set tag "&lt;span style=\"color:$colors($fg);background-color:$colors($bg)\"&gt;"} elseif {$fg != "" &amp;&amp; $bg == ""} {set tag "&lt;span style=\"color:$colors($fg)\"&gt;"} else {set tag "&lt;span style=\"background-color:$colors($bg)\"&gt;"}incr numtags} {set tag [string repeat "&lt;/span&gt;" $numtags]set numtags 0}}}set str [string replace $str $b $e $tag]}append str [string repeat "&lt;/span&gt;" $numtags]return $str}</code></pre></div>it's not 100% correct, but at least 99% hehe (tested!)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jul 17, 2005 3:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-16T23:22:23-04:00</updated>

		<published>2005-07-16T23:22:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52671#p52671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52671#p52671"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52671#p52671"><![CDATA[
oops, wait... it seems that still could be done on-the-fly with SPAN tag and inline styling<br><br>stay tuned hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 16, 2005 11:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-16T22:47:16-04:00</updated>

		<published>2005-07-16T22:47:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52670#p52670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52670#p52670"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52670#p52670"><![CDATA[
this can't be done correctly, at least not without representing your input string as HTML table, since you can change text's background color only within BODY/TABLE/TR/TD tags (attribute bgcolor)<br><br>and representing the string as table will mess up your page layout<br><br>or maybe it could be done with CSS, but that would require rather complex parsing and building the stylesheet, i.e. can't be done on-the-fly<br><br>anyway, I'm neither that good with HTML/CSS, nor that interested in writing code for complex handling of mIRC's lame colors<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 16, 2005 10:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scarface]]></name></author>
		<updated>2005-07-16T17:57:45-04:00</updated>

		<published>2005-07-16T17:57:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52659#p52659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52659#p52659"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52659#p52659"><![CDATA[
The 'normal' chars: <br>Like \002 for bold \003xx,yy for color and underline/reverse and such.<br><br>Mirc colors<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6466">scarface</a> — Sat Jul 16, 2005 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-16T17:43:44-04:00</updated>

		<published>2005-07-16T17:43:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52658#p52658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52658#p52658"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52658#p52658"><![CDATA[
what is "irc control char"? mIRC's color escape codes? ANSI color escapes? ^B for bold, ^U for underline?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 16, 2005 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scarface]]></name></author>
		<updated>2005-07-16T17:19:10-04:00</updated>

		<published>2005-07-16T17:19:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52655#p52655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52655#p52655"/>
		<title type="html"><![CDATA[irc control char to html generator]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52655#p52655"><![CDATA[
Hi<br><br>Could anyone make a irc control char to html generator for me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6466">scarface</a> — Sat Jul 16, 2005 5:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
