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

	<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>2003-08-15T05:08:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rolandguy]]></name></author>
		<updated>2003-08-15T05:08:36-04:00</updated>

		<published>2003-08-15T05:08:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24989#p24989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24989#p24989"/>
		<title type="html"><![CDATA[Arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24989#p24989"><![CDATA[
are you sure that the error is coming from that proc?  shouldnt get that error unless reading the var :/<br><br>roland<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3658">rolandguy</a> — Fri Aug 15, 2003 5:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2003-08-11T15:48:53-04:00</updated>

		<published>2003-08-11T15:48:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24736#p24736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24736#p24736"/>
		<title type="html"><![CDATA[Arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24736#p24736"><![CDATA[
At the risk of repeating what stdragon said, since he said it first  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>I agree with him 100% because I had the same problem, and this is how I solved it.<br><div class="codebox"><p>Code: </p><pre><code>proc myproc {} { global botnick settings foreach c [channels] { set settings([string tolower $c]) "0" } }</code></pre></div>and in the other procedure where you use <strong class="text-strong">settings($chan)</strong><br>put this line immediately after the global declaration (if any)<br><div class="codebox"><p>Code: </p><pre><code>set chan [string tolower $chan]</code></pre></div>So now both your array references match since they are forced to lower case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Mon Aug 11, 2003 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-11T14:36:33-04:00</updated>

		<published>2003-08-11T14:36:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24733#p24733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24733#p24733"/>
		<title type="html"><![CDATA[Arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24733#p24733"><![CDATA[
Are your names in the proper case? You should use [string tolower $c] in the array to be sure. Also why not do ".tcl array names settings" and see what's in there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Aug 11, 2003 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-11T12:29:23-04:00</updated>

		<published>2003-08-11T12:29:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24724#p24724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24724#p24724"/>
		<title type="html"><![CDATA[Arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24724#p24724"><![CDATA[
I searched the forum, but couldnt find an specific answer for my problem.   This use to work, but doesnt seem to work anymore.<br><br>In the script I would do:<br>proc myproc {} {<br>global botnick settings<br>foreach c [channels] {<br>set settings($c) "0"<br>}<br>}<br><br>However, now it just comes back with:<br>can't read "settings(#mychan)": no such variable<br><br>Thanks<p>Statistics: Posted by Guest — Mon Aug 11, 2003 12:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
