yeah, I'm helping him on WLM right now. Xat is trying to listen for a command and only do stuff when in certain chat windows. Here's what we have so far:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
for (var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()) {
c = ChatWnd.Contacts.GetContact();
if (c.Email.substring(0,6) = 'mgroup') {
// do stuff, check the message for commands
} else {
return '';
}
}