changeset 31119:fee2d38d14bd

Also, lower-case the endpoint name when looking up endpoint data.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 15 Dec 2009 01:42:24 +0000
parents 690bd42ce0ea
children f56126c5aa44
files libpurple/protocols/msn/user.c
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c	Tue Dec 15 01:22:59 2009 +0000
+++ b/libpurple/protocols/msn/user.c	Tue Dec 15 01:42:24 2009 +0000
@@ -552,11 +552,19 @@
 }
 
 MsnUserEndpoint *
-msn_user_get_endpoint_data(MsnUser *user, const char *endpoint)
+msn_user_get_endpoint_data(MsnUser *user, const char *input)
 {
+	char *endpoint;
+	MsnUserEndpoint *data;
+
 	g_return_val_if_fail(user != NULL, NULL);
+	g_return_val_if_fail(input != NULL, NULL);
 
-	return g_hash_table_lookup(user->endpoints, endpoint);
+	endpoint = g_ascii_strdown(input, -1);
+	data = g_hash_table_lookup(user->endpoints, endpoint);
+	g_free(endpoint);
+
+	return data;
 }
 
 MsnObject *