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

	<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>2007-09-07T06:19:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-09-07T06:19:20-04:00</updated>

		<published>2007-09-07T06:19:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75774#p75774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75774#p75774"/>
		<title type="html"><![CDATA[string map question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75774#p75774"><![CDATA[
The braces prevent variable substitution. Use list to create your map...<div class="codebox"><p>Code: </p><pre><code>string map [list ~~~ $x ^^^ $y ... $z] $msg</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Sep 07, 2007 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-09-07T00:03:47-04:00</updated>

		<published>2007-09-07T00:03:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75766#p75766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75766#p75766"/>
		<title type="html"><![CDATA[string map question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75766#p75766"><![CDATA[
string map wont recognize variables within its map like that.  I don't really see why you'd need it tho, when you can just do<br><br><br>set lcl_new_msg1  ":\0038,12 Welcome To $chan,  Our current DJ is $gbl_DJ_Current_Nick \xab\xa7\xbb:\0038,1 The AweRockRadio  Team \xab\xa7\xbb " <br><br>or whatever..That assumes $chan and $gbl_DJ_Current_Nick were previously defined of course.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Sep 07, 2007 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[droolin]]></name></author>
		<updated>2007-09-06T22:57:16-04:00</updated>

		<published>2007-09-06T22:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75765#p75765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75765#p75765"/>
		<title type="html"><![CDATA[string map question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75765#p75765"><![CDATA[
When looking through these threads, I seen where a suggestion was made to use string map instead of regsub, which seemed to fit a situation that I am trying to code for.  But, for some reason I am having problems with this.<br><br>I am trying to use a variable for the replacement value, and the variable name is what is actually being replaced.<br><br>"<div class="codebox"><p>Code: </p><pre><code>:\0038,12 Welcome To ~~~~~~~~,  Our current DJ is ^^^^^^^^ \xab\xa7\xbb:\0038,1 The AweRockRadio  Team \xab\xa7\xbb" set lcl_new_msg1 [string map -nocase {~~~~~~~~ $chan ^^^^^^^^ $gbl_DJ_Current_Nick} $gbl_ary_text(OnJoinMsg1)]</code></pre></div>And this is what appears.<br><br>-<blockquote class="uncited"><div>ozzy-  Welcome To $chan,  Our current DJ is $gbl_DJ_Current_Nick «§»: The AweRockRadio  Team «§»</div></blockquote>Any suggestions as to what I am doing wrong here?<br><br>Any and all help appreciated.<br><br>Dan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3562">droolin</a> — Thu Sep 06, 2007 10:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
