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

	<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>2002-01-15T11:40:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2002-01-15T11:40:00-04:00</updated>

		<published>2002-01-15T11:40:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3825#p3825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3825#p3825"/>
		<title type="html"><![CDATA[trouble with variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3825#p3825"><![CDATA[
OK, I'll try to remember it<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Jan 15, 2002 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-01-14T15:48:00-04:00</updated>

		<published>2002-01-14T15:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3797#p3797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3797#p3797"/>
		<title type="html"><![CDATA[trouble with variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3797#p3797"><![CDATA[
An alternate way, without the use of subst is<br><blockquote class="uncited"><div>set topic [set $rub]</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 14, 2002 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2002-01-14T15:11:00-04:00</updated>

		<published>2002-01-14T15:11:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3796#p3796</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3796#p3796"/>
		<title type="html"><![CDATA[trouble with variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3796#p3796"><![CDATA[
Don't laugh at me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>the good way was <strong class="text-strong">set topic [subst $[subst $rub]]</strong><br><br>Hope it may help some1 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>_________________<br>CrazyCat was here...<br>And on #Dune - irc.epiknet.org<br><br>&lt;font size=-1&gt;[ This Message was edited by: CrazyCat on 2002-01-14 12:11 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jan 14, 2002 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2002-01-14T14:31:00-04:00</updated>

		<published>2002-01-14T14:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3793#p3793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3793#p3793"/>
		<title type="html"><![CDATA[trouble with variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3793#p3793"><![CDATA[
hi <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>I've some troubles with something really stupid:<br>I've a list of variable which contains topics, as the following:<br><em class="text-italics">set comput "Computers &amp; internet"<br>set business "Business &amp; politique"</em><br><br>one of my procedures have this line:<br><em class="text-italics">set rub "comput"<br>get_topic $rub</em><br>where get_topic is another proc.<br>and now, the trouble:<br><em class="text-italics">proc get_topic { rub } {<br>global comput business chan<br>set topic $[subst $rub]<br>puthelp "PRIVMSG $chan :topic is $topic"<br>}</em><br><br>And it returns "$comput" and not "Computer &amp; Internet".<br>If I just use set topic [subst $rub] it returns me "comput" and if I try ${$rub} it answer "can't read $rub : no such variable"<br><br>How can I do to have $topic set with the value contains in the variable named in $rub?<br><br>Thx a lot<br><br><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jan 14, 2002 2:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
