quote:
Originally posted by dbgtrgr
I'm having some problems getting the email of the person who sent the message inside of a "RecieveMessage" function. :\ How could I go about doing this?
There really isn't an easy way of doing it.
code:
function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nMessageKind){
if (pChatWnd.Contacts.Count == 1 && Messenger.MyName != sOrigin){
for(var enumerator = new Enumerator(pChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext()) {
var Contact = enumerator.item();
Debug.Trace(Contact.Email);
}
}
}
[edit]
Beat ya stiggy
[/edit]