PHP Code:
if(!is_user_connected(id))
return HAM_IGNORED;
if(!is_user_alive(id))
return HAM_IGNORED;
For your information, only is_user_alive is needed, as it does all the other checks.
Also, name max len is 32, not 33. Also in
UpdateData read_flags should be cached.
In vformat charsmax should be used for getting string array size.
I am not sure what to do with this. Considering plugin purpose and ignoring the code, does something like this worth to be approved? I have to think.
__________________