quote:
Originally posted by whiz
Javascript code:
function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nMessageKind)
{
if (sOrigin === "<name of person to block>")
{
pChatWnd.SendMessage("/close");
}
}
This will close the conversation window when the blocked person sends you a message. Note that you have to block by name, not by email, so anyone with the same full name will also be blocked.
Could iterate the contacts in the chat window and do it by email that way. Names are (were) likely to change often making it unreliable. I could see this being more annoying though as every message will play the new message sound. A better option may be to just use the API to hide the window...