Hi All
I have a simple script as follows....
bind nick - * checknick
proc checknick {nick uhost hand chan newnick} {
if { [isvoice $newnick $chan] } {
... do something if voiced
return
} else {
... if not voice do something else
}
}
}
Now, when a user changes their nickname and they are voiced, the if {} works fine. However, if they are not voiced I expected the else {} to execute, however, it doestn't and I get the following error message in the log....
TCL error [checknick]: can not find channel named "file9"
The last bit, "file9" changes, sometimes "file7" etc. Anyone know why it's failing? What have I missed here?
cheers
AjK