code:
function OnEvent_SigninReady(sEmail){
var contacts = Messenger.MyContacts;
var online = 0;
var offline = 0;
for(var e = new Enumerator(contacts); !e.atEnd(); e.moveNext()){
item = e.item();
if(item.Status != 1 && item.Status != 0){
online++;
} else {
offline++;
}
}
MsgPlus.DisplayToast('Welcome!', 'Hello '+sEmail+' You have '+online+' contacts online.');
}
that is what i have so far... it all works and im happy with it but i want to take it one step further... how would i make it so instead of saying "Hello name@domain.com" its just says the first part of the email and disregards the @ and everything after it... so when you sign in it just says "Hello name"