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

	<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>2008-12-06T23:20:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-06T23:20:16-04:00</updated>

		<published>2008-12-06T23:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86107#p86107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86107#p86107"/>
		<title type="html"><![CDATA[Mirc Strip Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86107#p86107"><![CDATA[
Well, the pasted code really shouldn't remove them either...<br>Nevertheless, I still suggest using the <strong class="text-strong">stripcodes</strong> command to remove control characters such as colours, bold, etc. instead of using the posted script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 06, 2008 11:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rolet]]></name></author>
		<updated>2008-12-06T14:29:40-04:00</updated>

		<published>2008-12-06T14:29:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86105#p86105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86105#p86105"/>
		<title type="html"><![CDATA[Mirc Strip Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86105#p86105"><![CDATA[
no i want to leave all &lt;&gt; in lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10337">Rolet</a> — Sat Dec 06, 2008 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-06T13:35:05-04:00</updated>

		<published>2008-12-06T13:35:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86100#p86100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86100#p86100"/>
		<title type="html"><![CDATA[Mirc Strip Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86100#p86100"><![CDATA[
To be honest, I can't see how this piece of code would affect &lt;&gt; in any way.<br>I must, however, say that it feels somewhat overworked, doing the very same replacements over and over, and using the built-in <strong class="text-strong">stripcodes</strong> command should yield the very same (if not better) result, although probably much faster.<br><br>If you simply wish to remove &lt;&gt; from the first word in the line, I'd suggest using something like this (having the string being stripped in <em class="text-italics">$text</em>) :<div class="codebox"><p>Code: </p><pre><code>regsub -- {^&lt;([^[:space:]])&gt;} $text {\1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 06, 2008 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rolet]]></name></author>
		<updated>2008-12-06T10:41:39-04:00</updated>

		<published>2008-12-06T10:41:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86094#p86094</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86094#p86094"/>
		<title type="html"><![CDATA[Mirc Strip Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86094#p86094"><![CDATA[
any idea why this will strip &lt;&gt; from text?? trying to get a quote script to work but cant cause if i have &lt;NICK&gt; it strips the lot. but if its &lt;+NICK&gt; its fine<br><div class="codebox"><p>Code: </p><pre><code>proc replace {{args ""}} {set switches ""for {set i 0} {[string match -* [set arg [lindex $args $i]]]} {incr i} {if {![regexp -- {^-(nocase|-)$} $arg -&gt; switch]} {error "bad switch \"$arg\": must be -nocase, or --"}if {$switch == "-"} {incr ibreak}; lappend switches $switch}set nocase [expr {([lsearch -exact $switches "nocase"] &gt;= "0") ? 1 : 0}]set text [lindex $args $i]set substitutions [lindex $args [expr $i+1]]# Check to see if $substitutions is in list format, if not make it so.set substitutions [split $substitutions]if {[info tclversion] &gt;= "8.1"} {return [expr {($nocase)?[string map -nocase $substitutions $text]:[string map $substitutions $text]}]}set re_syntax {([][\\\*\+\?\{\}\,\(\)\:\.\^\$\=\!\|])}foreach {a b} $substitutions {regsub -all -- $re_syntax $a {\\\1} aif {$nocase} {regsub -all -nocase -- $a $text $b text} \else {regsub -all -- $a $text $b text}}; return $text}proc mirc_strip {{args ""}} {set switches ""if {$switches == ""} {set switches all}set arg [lindex $args 0]set all [expr {([lsearch -exact $switches all] &gt;= 0) ? 1 : 0}]set list [list \002 "" \017 "" \026 "" \037 ""]regsub -all -- "\003(\[0-9\]\[0-9\]?(,\[0-9\]\[0-9\]?)?)?" $arg "" argset arg [replace -- $arg [join $list]]return $arg}proc mq:filter {data} {   regsub -all -- "(\002|\017|\026|\037|\003(\[0-9\]\[0-9\]?(,\[0-9\]\[0-9\]?)?)?)"  $data "" data  set data [mirc_strip $data]  return $data}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10337">Rolet</a> — Sat Dec 06, 2008 10:41 am</p><hr />
]]></content>
	</entry>
	</feed>
