In one of my procs I do this:
set owner($chan) "$nick"
puthelp "NOTICE $nick :$owner($chan) is now the owner of $chan"
Then in another procedure I have this:
proc partchan {nick uhost hand chan {msg ""}} {
global owner
puthelp "NOTICE $nick :Leaving $chan whos owner is $owner($chan)."
When leaving the channel (bind triggers partchan) I get this in console:
[20:17] TCL error [partchan]: can't read "owner(#prem_vista)": variable isn't array
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.
Why does the second proc thing that it is not an array?
Thanks