yes sign..Jay wrote:I'm getting this error, how to solve ?
my codeCode: Select all
Tcl error [part:pub]: can't read "wordcount(ident@host)": no such element in array
BTw the S word ? SIGN ya mean ? looked over it, sorryCode: Select all
proc part:pub {nick host handle channel partmsg} { global wordcount checkchan if {[string match -nocase $checkchan $chan]} { putserv "PRIVMSG $checkchan :counter reset of $wordcount($host)" unset wordcount($host) } }
and as for your error, you need to check if the variable exists before you attempt to do anything with it other than create it... Just like the other 'info exists' check in the previous code bit.