quote:
Originally posted by 5n4k3
And if so what's the line:
javascript code:
if(automsg == -1)
do?
The variable automsg is the return value for "Message.search("AutoMessage :")".
search() returns the position what is searched for, or -1 if it can't be found.
Therefore, that line checks if "AutoMessage :" is in the message sent, if it is then it's (probably) an automessage and won't change your status. Of course, this will trip up if your message sent contains the string "AutoMessage :".