changeset 9859:42f6b69c9d8e

[gaim-migrate @ 10738] (21:34:09) shx: fix to update the buddy icon to NULL, so we don't request msnobjects that doesn't exist :P committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 25 Aug 2004 01:35:24 +0000
parents d0c196ebe176
children 65b3156f9f48
files src/protocols/msn/notification.c
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Wed Aug 25 01:31:45 2004 +0000
+++ b/src/protocols/msn/notification.c	Wed Aug 25 01:35:24 2004 +0000
@@ -538,10 +538,18 @@
 
 	msn_user_set_friendly_name(user, friendly);
 
-	if (session->protocol_ver >= 9 && cmd->param_count == 5)
+	if (session->protocol_ver >= 9)
 	{
-		msnobj = msn_object_new_from_string(gaim_url_decode(cmd->params[4]));
-		msn_user_set_object(user, msnobj);
+		if (cmd->param_count == 5)
+		{
+			msnobj =
+				msn_object_new_from_string(gaim_url_decode(cmd->params[4]));
+			msn_user_set_object(user, msnobj);
+		}
+		else
+		{
+			msn_user_set_object(user, NULL);
+		}
 	}
 
 	if (!g_ascii_strcasecmp(state, "BSY"))