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

	<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>2022-10-08T17:59:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cnecrea]]></name></author>
		<updated>2022-10-08T17:59:02-04:00</updated>

		<published>2022-10-08T17:59:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111456#p111456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111456#p111456"/>
		<title type="html"><![CDATA[Need help to remove color codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111456#p111456"><![CDATA[
Many thanks!!! Worked!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12985">cnecrea</a> — Sat Oct 08, 2022 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-10-08T09:24:05-04:00</updated>

		<published>2022-10-08T09:24:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111453#p111453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111453#p111453"/>
		<title type="html"><![CDATA[Need help to remove color codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111453#p111453"><![CDATA[
If you want to strip any color or control char, just add:<div class="codebox"><p>Code: </p><pre><code>set text [stripcodes * $text]</code></pre></div>You can have a look @ <a href="https://docs.eggheads.org/using/tcl-commands.html#stripcodes-strip-flags-string" class="postlink">https://docs.eggheads.org/using/tcl-com ... ags-string</a> if you want more informations about this command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Oct 08, 2022 9:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cnecrea]]></name></author>
		<updated>2022-10-08T09:07:54-04:00</updated>

		<published>2022-10-08T09:07:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111452#p111452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111452#p111452"/>
		<title type="html"><![CDATA[Need help to remove color codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111452#p111452"><![CDATA[
hi there,<br><br>Can someone help me with this part of TCL? It is supposed to log all chat lines and actions (/me or /ame) to a file. The "problem" is that when someone writes with color code (CTRL+K) or BOLD/Underline also logs it and I don't want that.<br><br>CTRL+K+12 example<div class="codebox"><p>Code: </p><pre><code>10/08/22 14:49:52 CMSG #CHANNELLOG: user(user@12.12.12.12) 12this is CTRL+K+12</code></pre></div>example what I want without inserting "12" or similar (strip codes)<div class="codebox"><p>Code: </p><pre><code>10/08/22 14:49:52 CMSG #CHANNELLOG: user(user@12.12.12.12) this is CTRL+K+12</code></pre></div><br><div class="codebox"><p>Code: </p><pre><code>setudef flag chatset logfile "logs/"bind pubm - * spymsgechoproc spymsgecho { nick uhost h chan text } {   if {[channel get $chan chat]} {     global logfile     set r "[open "$logfile/$chan.log.log" a+]"     puts $r "[strftime "%D %T"] CMSG $chan: $nick ($uhost) $text";     close $r   }}bind ctcp - action spyactionechoproc spyactionecho {nick uhost h d k text} {   global botnick   if {$d == $botnick} {       return 0   } elseif {[lsearch -exact [channel info $d] {+chat}] != "-1"} {     global logfile     set r "[open "$logfile/$d.log.log" a+]"     puts $r "[strftime "%D %T"] AMSG $d: $nick ($uhost) $text";     close $r   }}putlog "TCL LOG"</code></pre></div>Any help would be a great help, thanks!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12985">cnecrea</a> — Sat Oct 08, 2022 9:07 am</p><hr />
]]></content>
	</entry>
	</feed>
