So that you have a working script...
JScript code:
var oEmails = [
'email1@hotmail.com',
'email2@hotmail.com'
];
function OnEvent_ChatWndReceiveMessage (pChatWnd, sOrigin, sMessage, nMessageKind) {
if ( pChatWnd.Contacts.Count !== 1 || sOrigin === Messenger.MyName) return sMessage;
for (i in oEmails) {
if ( pChatWnd.Contacts.GetContact(oEmails[i]) ) {
return '';
}
}
}