Mercurial > pidgin.yaz
diff libpurple/protocols/msn/user.c @ 15541:d74985add99f
This is my attempt at MSN mobile status, but I suspect MSN mobile status doesn't exist. If it's confirmed that it doesn't, I'll revert this. But I want to keep it for posterity, in case it does exist
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 04 Feb 2007 09:36:33 +0000 |
parents | 5fe8042783c1 |
children | 32c366eeeb99 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c Sun Feb 04 08:25:43 2007 +0000 +++ b/libpurple/protocols/msn/user.c Sun Feb 04 09:36:33 2007 +0000 @@ -81,8 +81,15 @@ account = user->userlist->session->account; - if (user->status != NULL) - gaim_prpl_got_user_status(account, user->passport, user->status, NULL); + if (user->status != NULL) { + if (!strcmp(user->status, "offline") && user->mobile) { + gaim_prpl_got_user_status(account, user->passport, "available", NULL); + gaim_prpl_got_user_status(account, user->passport, "mobile", NULL); + } else { + gaim_prpl_got_user_status(account, user->passport, user->status, NULL); + gaim_prpl_got_user_status_deactive(account, user->passport, "mobile"); + } + } if (user->idle) gaim_prpl_got_user_idle(account, user->passport, TRUE, -1);