O.P. RE: Help with very small script
Now it works, but it sets messege for all to ' ' instead for only the email I set.
var oEmails = [
'matejsturm57@hotmail.com'
];
function OnEvent_ChatWndReceiveMessage (pChatWnd, sOrigin, sMessage, nMessageKind) {
for (var oEmail in oEmails) {
if (pChatWnd.Contacts.GetContact(oEmails[oEmail]) && pChatWnd.Contacts.Count === 1) {
return '';
}
}
}
|