diff src/status.c @ 11624:45d54425dc65

[gaim-migrate @ 13899] Fix the bug where new buddies were showing up as groups sometimes, silence a few g_log warnings, and make it so that if you add and then remove a user on MSN without signing off and on in between the user is actually removed from the server list committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 08 Oct 2005 16:08:51 +0000
parents 03cd74ca2562
children c7305c2d650b
line wrap: on
line diff
--- a/src/status.c	Sat Oct 08 14:33:52 2005 +0000
+++ b/src/status.c	Sat Oct 08 16:08:51 2005 +0000
@@ -619,12 +619,12 @@
 		const char *buddy_alias = gaim_buddy_get_alias(buddy);
 		char *tmp = NULL;
 
-		if (!gaim_status_is_available(old_status) &&
+		if (((old_status == NULL) || !gaim_status_is_available(old_status)) &&
 				gaim_status_is_available(new_status))
 		{
 			tmp = g_strdup_printf(_("%s came back"), buddy_alias);
 		}
-		else if (gaim_status_is_available(old_status) &&
+		else if ((old_status != NULL) && gaim_status_is_available(old_status) &&
 				!gaim_status_is_available(new_status))
 		{
 			tmp = g_strdup_printf(_("%s went away"), buddy_alias);