Mercurial > pidgin.yaz
changeset 21628:495f2f1de998
old_status can be NULL when [de]activating a non-exclusive status.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 26 Nov 2007 05:36:09 +0000 |
parents | 9f7590a24b9b |
children | 6636546aeacf |
files | libpurple/prpl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/prpl.c Mon Nov 26 05:19:07 2007 +0000 +++ b/libpurple/prpl.c Mon Nov 26 05:36:09 2007 +0000 @@ -258,8 +258,8 @@ PurpleStatus *old_status, PurpleStatus *new_status) { g_return_if_fail(account != NULL); - g_return_if_fail(old_status != NULL); g_return_if_fail(new_status != NULL); + g_return_if_fail(!purple_status_is_exclusive(new_status) || old_status != NULL); do_prpl_change_account_status(account, old_status, new_status);