}
proc leaving {lchan} {
+ global nick_onchans
foreach luser [array names nick_onchans] {
upvar #0 nick_onchans($luser) oc
set oc [grep tc {"$tc" != "$lchan"} $oc]
if {[llength names_chans] > 1} {
set oc [grep tc {[lsearch -exact $tc $names_chans] >= 0} $oc]
}
- if {![llength $oc]} { lnick_forget $n }
+ if {![llength $oc]} { lnick_forget $luser }
}
unset names_chans
}