matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Script Help!
jscript code: function OnEvent_ChatWndReceiveMessage (oChatWnd, sOrigin, sMessage, nMessageKind) {
for (var oContact = new Enumerator(oChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()) {
if (oContact.item().Email === 'johndoe@hotmail.com' && sMessage.toLowerCase() === 'you are dumb') {
sMessage = '';
}
}
}
|
|