changeset 31257:c83902e953c4

Fix a bad behavior when talking with users using multiple locations. The passport needs to be normalized before being compared. Reported by Darryl Pogue (dvpdiner2) with fix idea. Thanks!
author masca@cpw.pidgin.im
date Mon, 21 Jun 2010 07:11:25 +0000
parents ead7b8c19725
children 4b0cb9435414
files libpurple/protocols/msn/user.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c	Sat Jun 19 23:55:16 2010 +0000
+++ b/libpurple/protocols/msn/user.c	Mon Jun 21 07:11:25 2010 +0000
@@ -24,6 +24,7 @@
 
 #include "internal.h"
 #include "debug.h"
+#include "util.h"
 
 #include "user.h"
 #include "slp.h"
@@ -673,7 +674,7 @@
 
 	pass = msn_user_get_passport(user);
 
-	return strcmp(pass, passport);
+	return strcmp(pass, purple_normalize_nocase(NULL, passport));
 }
 
 gboolean