changeset 24519:3915331092b2

Deleting a contact without a ContactId doesn't work, so don't bother the server with it.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 07 Dec 2008 07:28:42 +0000
parents 4fd22591e3f0
children d39ed4032dc9
files libpurple/protocols/msn/contact.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/contact.c	Sun Dec 07 07:09:57 2008 +0000
+++ b/libpurple/protocols/msn/contact.c	Sun Dec 07 07:28:42 2008 +0000
@@ -1179,8 +1179,8 @@
 		contact_id_xml = g_strdup_printf(MSN_CONTACT_ID_XML, user->uid);
 		purple_debug_info("msn", "Deleting contact with contactId: %s\n", user->uid);
 	} else {
-		contact_id_xml = g_strdup_printf(MSN_CONTACT_XML, user->passport);
-		purple_debug_info("msn", "Deleting contact with passport: %s\n", user->passport);
+		purple_debug_info("msn", "Unable to delete contact %s without a ContactId\n", user->passport);
+		return;
 	}
 
 	state = msn_callback_state_new(session);