diff libpurple/prpl.c @ 21640:ed57eeb486d5

merge of 'a3da14876c865437f0916509629a649308081104' and 'b1278944ccaa36c30b7f00edf5b79dc38347c931'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 26 Nov 2007 05:41:09 +0000
parents 495f2f1de998
children eab7d03edfcb
line wrap: on
line diff
--- a/libpurple/prpl.c	Mon Nov 26 05:30:36 2007 +0000
+++ b/libpurple/prpl.c	Mon Nov 26 05:41: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);