changeset 31118:690bd42ce0ea

Endpoint names are case-insensitive, so put the id in lowercase always.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 15 Dec 2009 01:22:59 +0000
parents ccae0fa9622f
children fee2d38d14bd
files libpurple/protocols/msn/user.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c	Tue Dec 15 00:55:46 2009 +0000
+++ b/libpurple/protocols/msn/user.c	Tue Dec 15 01:22:59 2009 +0000
@@ -247,13 +247,19 @@
 }
 
 void
-msn_user_set_endpoint_data(MsnUser *user, const char *endpoint, MsnUserEndpoint *data)
+msn_user_set_endpoint_data(MsnUser *user, const char *input, MsnUserEndpoint *data)
 {
 	MsnUserEndpoint *new;
+	char *endpoint;
+
 	g_return_if_fail(user != NULL);
+	g_return_if_fail(input != NULL);
+
+	endpoint = g_ascii_strdown(input, -1);
 
 	if (data == NULL) {
 		g_hash_table_remove(user->endpoints, endpoint);
+		g_free(endpoint);
 		return;
 	}
 
@@ -266,6 +272,8 @@
 
 	new->clientid = data->clientid;
 	new->extcaps = data->extcaps;
+
+	g_free(endpoint);
 }
 
 void