This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

counting user messages in channel

Old posts that have not been replied to for several years.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Jay wrote:I'm getting this error, how to solve ?

Code: Select all

Tcl error [part:pub]: can't read "wordcount(ident@host)": no such element in array
my code

Code: 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)
        }
}
BTw the S word ? SIGN ya mean ? looked over it, sorry
yes sign..
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.
Locked