quote:
Originally posted by roflmao456
from looking @ the code
why is it _origin equal to your name?
shouldn't it be != instead?
because then only you (when you send a message) will appear offline when you send
Correct. Therefore, you should use "!==" (not the same value and same type) or "!=" (not the same value).
quote:
Originally posted by Napbree
No
"2" === 2 would be true. 3 '='s means it has to be identical. Which it is.
No, the first part is a string and the second is an integer. In the case of comparing names, it isn't really necessary to check if the types are equal to. Messenger.MyName would only return a non-string when you're not signed in, but I can't think of a case where _origin is a non-string. But, for the sake of avoiding the smallest glitch, it's recommend to use "===" if you're sure the types are equal, otherwise something weird happened and you better make the script don't respond on weird things.