Messenger.MyContacts is an initerator object.
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message == "/whoihave"){
var emessage = "Online Contact List:\n";
for (var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext()) {
if(oContact.item().Status == 3) emessage += oContact.item().Email+"\n";
}
return emessage;
}
}
I bolded/red the parts you left out and your For Loop should be what is above not what you posted.