matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Help with very small script
Something like this?
js code: var oEmails = [
'email1@hotmail.com',
'email2@hotmail.com'
];
function OnEvent_ChatWndReceiveMessage (pChatWnd, sOrigin, sMessage, nMessageKind) {
for (var oEmail in oEmails) {
if (pChatWnd.Contacts.GetContact(oEmail) && pChatWnd.Contacts.Count === 1) {
return '';
}
}
}
|
|