libpurple/protocols/jabber/google/google_roster.c

changeset 38358
30ba44276e74
parent 37144
8b63b9948107
parent 38258
9a6551eba09c
child 40052
cc03b5af25ea
--- a/libpurple/protocols/jabber/google/google_roster.c	Mon Jun 12 01:00:04 2017 +0000
+++ b/libpurple/protocols/jabber/google/google_roster.c	Mon Jun 12 17:48:37 2017 -0300
@@ -34,7 +34,7 @@
 	char *jid_norm = (char *)jabber_normalize(account, jid);
 
 	while (list) {
-		if (!strcmp(jid_norm, (char*)list->data)) {
+		if (purple_strequal(jid_norm, (char*)list->data)) {
 			purple_xmlnode_set_attrib(query, "xmlns:gr", NS_GOOGLE_ROSTER);
 			purple_xmlnode_set_attrib(query, "gr:ext", "2");
 			purple_xmlnode_set_attrib(item, "gr:t", "B");
@@ -56,7 +56,7 @@
 	const char *subscription = purple_xmlnode_get_attrib(item, "subscription");
 	const char *ask = purple_xmlnode_get_attrib(item, "ask");
 
-	if ((!subscription || !strcmp(subscription, "none")) && !ask) {
+	if ((!subscription || purple_strequal(subscription, "none")) && !ask) {
 		/* The Google Talk servers will automatically add people from your Gmail address book
 		 * with subscription=none. If we see someone with subscription=none, ignore them.
 		 */

mercurial