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

	<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>2019-01-07T02:08:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2019-01-07T02:08:17-04:00</updated>

		<published>2019-01-07T02:08:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107321#p107321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107321#p107321"/>
		<title type="html"><![CDATA[Character hiding and showing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107321#p107321"><![CDATA[
Ah, sorry, my bad. Loop and <em class="text-italics">lsearch</em> then?<div class="codebox"><p>Code: </p><pre><code>proc hideword word {set chars {" " "-" "," "." "\("  "\)" "\'" "`" "?" "*"}foreach c [split $word ""] {if {[lsearch $chars $c] &gt; -1} {append nw $c} else {append nw "*"}}return $nw}</code></pre></div>and a "compact" version:<div class="codebox"><p>Code: </p><pre><code>proc hideword word {set chars {" " "-" "," "." "\("  "\)" "\'" "`" "?" "*"}foreach c [split $word ""] {append nw [expr {[lsearch $chars $c] &gt; -1 ? $c : "*"}]}return $nw}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jan 07, 2019 2:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2019-01-06T12:50:22-04:00</updated>

		<published>2019-01-06T12:50:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107317#p107317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107317#p107317"/>
		<title type="html"><![CDATA[Character hiding and showing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107317#p107317"><![CDATA[
I want to show does characters not hide them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Jan 06, 2019 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2019-01-04T14:53:00-04:00</updated>

		<published>2019-01-04T14:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107313#p107313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107313#p107313"/>
		<title type="html"><![CDATA[Character hiding and showing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107313#p107313"><![CDATA[
Have you tried string map like:<div class="codebox"><p>Code: </p><pre><code>string map [list " " "" "-" "" "," "" "." "" "\(" "" "\)" "" "\'" "" "`" "" "?" "" "*" ""] [split $text]</code></pre></div>that basically removes the characters leaving everything else?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jan 04, 2019 2:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2019-01-04T12:46:39-04:00</updated>

		<published>2019-01-04T12:46:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107312#p107312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107312#p107312"/>
		<title type="html"><![CDATA[Character hiding and showing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107312#p107312"><![CDATA[
Evening.<br>I have a small problem with the following code, meaning that it works 97% <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I cannot make it show<br>'<br>`<br>and <br>?<br><br><div class="codebox"><p>Code: </p><pre><code>proc hideword {word} {set newword "";foreach letter [split $word {}] {if {$letter ne " " &amp;&amp; $letter ne "-" &amp;&amp; $letter ne "," &amp;&amp; $letter ne "." &amp;&amp; $letter ne "(" &amp;&amp; $letter ne ")" &amp;&amp; $letter ne "'" &amp;&amp; $letter ne "`" &amp;&amp; $letter ne "?"} {set letter "*";}append newword $letter;}return $newword;}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Fri Jan 04, 2019 12:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
