changeset 20464:c3b23c9f170e

oops, not only did I typo'ed MFN, I also did a comparison before I update the variable Fixes #1097
author Ka-Hing Cheung <khc@hxbc.us>
date Sat, 21 Jul 2007 20:13:09 +0000
parents 0b04a7d90470
children 416ce8a7ac66
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sat Jul 21 19:47:42 2007 +0000
+++ b/libpurple/protocols/msn/notification.c	Sat Jul 21 20:13:09 2007 +0000
@@ -1157,11 +1157,14 @@
 			msn_user_set_work_phone(session->user, NULL);
 		else if (!strcmp(type, "PHM"))
 			msn_user_set_mobile_phone(session->user, NULL);
-		else if (!strcmp(type, "MFM")) {
+		else {
 			type = cmd->params[1];
-			purple_connection_set_display_name(
-				purple_account_get_connection(session->account),
-				purple_url_decode(cmd->params[2]));
+			if (!strcmp(type, "MFN")) {
+
+				purple_connection_set_display_name(
+					purple_account_get_connection(session->account),
+					purple_url_decode(cmd->params[2]));
+			}
 		}
 	}
 }