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

	<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>2008-04-21T22:50:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bradleylauchlin]]></name></author>
		<updated>2008-04-21T22:50:42-04:00</updated>

		<published>2008-04-21T22:50:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82477#p82477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82477#p82477"/>
		<title type="html"><![CDATA[not detecting variable as array. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82477#p82477"><![CDATA[
Thanks so much, that resolved it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9861">bradleylauchlin</a> — Mon Apr 21, 2008 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-04-21T21:18:06-04:00</updated>

		<published>2008-04-21T21:18:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82476#p82476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82476#p82476"/>
		<title type="html"><![CDATA[not detecting variable as array. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82476#p82476"><![CDATA[
$owner is a global variable defined in your eggdrop's configuration file, which is not an array.  Rename your array variable to something like "the_owner".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Apr 21, 2008 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bradleylauchlin]]></name></author>
		<updated>2008-04-21T22:50:57-04:00</updated>

		<published>2008-04-21T20:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82471#p82471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82471#p82471"/>
		<title type="html"><![CDATA[not detecting variable as array. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82471#p82471"><![CDATA[
In one of my procs I do this:<br><br>  set owner($chan) "$nick"<br>  puthelp "NOTICE $nick :$owner($chan) is now the owner of $chan"<br><br>Then in another procedure I have this:<br><br> proc partchan {nick uhost hand chan {msg ""}} {<br>  global owner<br>  puthelp "NOTICE $nick :Leaving $chan whos owner is $owner($chan)."<br><br>When leaving the channel (bind triggers partchan) I get this in console:<br><br>[20:17] TCL error [partchan]: can't read "owner(#prem_vista)": variable isn't array<br><br>However, the first bit of code outputs correctly saying the correct username is the owner of the correct channel. So clearly the variable is an array there, and working. These are the only two snippets of code in which I even mention this variable.<br><br>Why does the second proc thing that it is not an array?<br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9861">bradleylauchlin</a> — Mon Apr 21, 2008 8:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
