I have the following code:
bind join - * betaz
proc betaz {nick uhost hand chan} {
global ipjoinlast
set ipjoinbmask *!*[string tolower [string range $uhost [string first "@" $uhost] end]]
if {$ipjoinlast($chan) != ""} {
set ipjoinlast($chan) "0.0.0.0"
}
...
and when I run it on channel #mychan I get the following error msg, why ?
TCL error [betaz]: can't set "ipjoinlast(#mychan)": variable isn't array