comparison libpurple/protocols/msn/user.c @ 15540: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
comparison
equal deleted inserted replaced
15539:16845e318249 15540:d74985add99f
79 { 79 {
80 GaimAccount *account; 80 GaimAccount *account;
81 81
82 account = user->userlist->session->account; 82 account = user->userlist->session->account;
83 83
84 if (user->status != NULL) 84 if (user->status != NULL) {
85 gaim_prpl_got_user_status(account, user->passport, user->status, NULL); 85 if (!strcmp(user->status, "offline") && user->mobile) {
86 gaim_prpl_got_user_status(account, user->passport, "available", NULL);
87 gaim_prpl_got_user_status(account, user->passport, "mobile", NULL);
88 } else {
89 gaim_prpl_got_user_status(account, user->passport, user->status, NULL);
90 gaim_prpl_got_user_status_deactive(account, user->passport, "mobile");
91 }
92 }
86 93
87 if (user->idle) 94 if (user->idle)
88 gaim_prpl_got_user_idle(account, user->passport, TRUE, -1); 95 gaim_prpl_got_user_idle(account, user->passport, TRUE, -1);
89 else 96 else
90 gaim_prpl_got_user_idle(account, user->passport, FALSE, 0); 97 gaim_prpl_got_user_idle(account, user->passport, FALSE, 0);