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

	<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-11-04T12:51:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[wubmerlin]]></name></author>
		<updated>2007-11-04T12:51:20-04:00</updated>

		<published>2007-11-04T12:51:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77445#p77445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77445#p77445"/>
		<title type="html"><![CDATA[set $var with $arg ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77445#p77445"><![CDATA[
Just for your information i just got it !<br><br>REPLACE: <div class="codebox"><p>Code: </p><pre><code>#HERE IS MY PROBLEM !!!!!! set set_rules $[string tolower [lindex $arg 0]]_rules #END OF PROBLEM </code></pre></div>BY:<div class="codebox"><p>Code: </p><pre><code>#NO MORE PROBLEM !!!!!! set set_rules [string tolower [lindex $arg 0]]_rulesset set_rules [set $set_rules]#END  </code></pre></div>Enjoy !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9430">wubmerlin</a> — Sun Nov 04, 2007 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-11-04T12:20:42-04:00</updated>

		<published>2007-11-04T12:20:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77442#p77442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77442#p77442"/>
		<title type="html"><![CDATA[set $var with $arg ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77442#p77442"><![CDATA[
I think that you can have a solution with eval or subst, but I can't give you the correct syntax you need.<br>Peharps anyone else?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Nov 04, 2007 12:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wubmerlin]]></name></author>
		<updated>2007-11-04T11:57:54-04:00</updated>

		<published>2007-11-04T11:57:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77440#p77440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77440#p77440"/>
		<title type="html"><![CDATA[set $var with $arg ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77440#p77440"><![CDATA[
Hello i wan tto know if this is possible<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !rules pub_rulesset public_rules "test public"set private_rules "test private"set pm_rules "test pm"proc pub_rules { nick uhost hand chan arg } {global public_rules pm_rules private_rulesif {[string tolower [lindex $arg 0]] != ""} {#HERE IS MY PROBLEM !!!!!!set set_rules $[string tolower [lindex $arg 0]]_rules#END OF PROBLEMputhelp "PRIVMSG $chan :[string toupper [lindex $arg 0]] Rules"puthelp "PRIVMSG $chan :$set_rules"}</code></pre></div>I want  to grabmy var with the arg, example if i type !rules public<br><br>$arg = public<br>i want to set:<br>set set_rules $$arg <br>Like this :  set set_rules $public_rules<br><br>And i dont want set it with if $arg == public ... i want it like this b/c i have 250 rules to set and i want to clean my code ( already done with the IF )<br><br>Thanks alot !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9430">wubmerlin</a> — Sun Nov 04, 2007 11:57 am</p><hr />
]]></content>
	</entry>
	</feed>
