diff src/status.c @ 10714:ad57a8b5495e

[gaim-migrate @ 12308] Some minor status changes. * Using the "enable?" checkbox in the account window will now sign on an account if it was offline. I'm starting to get a feel for how some of this stuff should work... * Signing on an account that doesn't support available messages no longer shows some warnings. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 21 Mar 2005 05:22:09 +0000
parents 7d4ca0d36f25
children 55af3fa46329
line wrap: on
line diff
--- a/src/status.c	Mon Mar 21 04:17:21 2005 +0000
+++ b/src/status.c	Mon Mar 21 05:22:09 2005 +0000
@@ -775,6 +775,8 @@
 	gboolean changed = FALSE;
 	const gchar *id;
 
+	g_return_if_fail(status != NULL);
+
 	if (!active && gaim_status_is_exclusive(status))
 	{
 		gaim_debug_error("status",
@@ -783,8 +785,6 @@
 		return;
 	}
 
-	g_return_if_fail(status != NULL);
-
 	if (status->active != active)
 		changed = TRUE;
 
@@ -798,7 +798,7 @@
 		if (value == NULL)
 		{
 			gaim_debug_warning("status", "The attribute \"%s\" on the status \"%s\" is "
-							   "not supported.\n", id, status->title);
+							   "not supported.\n", id, status->type->name);
 			/* Skip over the data and move on to the next attribute */
 			va_arg(args, void *);
 			continue;