comparison libpurple/protocols/oscar/oscar.c @ 31407:c446bf0b83d2

Fix unsetting your mood when "None" is selected. (#7431) I have no way to test this because the official ICQ client doesn't support moods anymore.
author Mark Doliner <mark@kingant.net>
date Mon, 21 Mar 2011 07:38:06 +0000
parents 0cf50b0f7af4
children 8b2fa46cdfd5 d4b7770324f8
comparison
equal deleted inserted replaced
31406:0062b2661b3c 31407:c446bf0b83d2
3658 PurpleConnection *pc; 3658 PurpleConnection *pc;
3659 OscarData *od; 3659 OscarData *od;
3660 3660
3661 purple_debug_info("oscar", "Set status to %s\n", purple_status_get_name(status)); 3661 purple_debug_info("oscar", "Set status to %s\n", purple_status_get_name(status));
3662 3662
3663 if (!purple_status_is_active(status)) 3663 /* Either setting a new status active or setting a status inactive.
3664 * (Only possible for independent status (i.e. X-Status moods.) */
3665 if (!purple_status_is_active(status) && !purple_status_is_independent(status))
3664 return; 3666 return;
3665 3667
3666 if (!purple_account_is_connected(account)) 3668 if (!purple_account_is_connected(account))
3667 return; 3669 return;
3668 3670