cpw.qulogic.msnp16: 64ad57ff: Also, lower-case the endpoint name when ...
qulogic at pidgin.im
qulogic at pidgin.im
Tue Dec 15 04:01:55 EST 2009
-----------------------------------------------------------------
Revision: 64ad57ff7117b6e3420ddc81e1e503624ec2c721
Ancestor: 1e8163f7de08bd9742323ba3f98a56ee16a640d6
Author: qulogic at pidgin.im
Date: 2009-12-15T01:42:24
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/64ad57ff7117b6e3420ddc81e1e503624ec2c721
Modified files:
libpurple/protocols/msn/user.c
ChangeLog:
Also, lower-case the endpoint name when looking up endpoint data.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/user.c aaa399150266d956de525647520648bcf10f7f3d
+++ libpurple/protocols/msn/user.c 5372a3a45b8077cf268845cc712e84bf8fdab675
@@ -552,11 +552,19 @@ MsnUserEndpoint *
}
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 *
More information about the Commits
mailing list