quote:
Originally posted by 134jimbodude
So to put more emails in would i just do:
No. You'd need an array of emails to loop through.
code:
function OnEvent_Signin(sUserEmail){
var sEmails = new Array("email@address.com","email2@address.com");
for(item in sEmails){
var oContact = Messenger.MyContacts.GetContact(sEmails[item]);
if(oContact.Status != 1){
var ChatWnd = Messenger.OpenChat(sEmails[item]);
ChatWnd.SendMessage("hi");
}
}
}
quote:
Originally posted by CookieRevised
quote:
Originally posted by deAd
Cookie, that is just a check, and is not required. The same result will be produced if you do not add that if statement. Plus will not send the message if it can't.
That is not 'just' a check, it is actually very required as it is not always possible to send a message to a chat window (even if you just opened it).
If you do not include this check, the message will not be sent. If you do include the check, the message won't be sent. Either way, the message will be sent only when it can be. I don't see the necessity of it

it's not like it causes problems or something?