libpurple/protocols/jabber/usermood.c

changeset 38358
30ba44276e74
parent 36692
324db2a53c4c
parent 38258
9a6551eba09c
child 40358
e6fe6fc1f516
--- a/libpurple/protocols/jabber/usermood.c	Mon Jun 12 01:00:04 2017 +0000
+++ b/libpurple/protocols/jabber/usermood.c	Mon Jun 12 17:48:37 2017 -0300
@@ -127,7 +127,7 @@
 	g_return_val_if_fail(name && *name, NULL);
 
 	for (i = 0; moods[i].mood != NULL; ++i) {
-		if (g_str_equal(name, moods[i].mood)) {
+		if (purple_strequal(name, moods[i].mood)) {
 			return &moods[i];
 		}
 	}
@@ -151,7 +151,7 @@
 		return;
 	for (moodinfo = mood->child; moodinfo; moodinfo = moodinfo->next) {
 		if (moodinfo->type == PURPLE_XMLNODE_TYPE_TAG) {
-			if (!strcmp(moodinfo->name, "text")) {
+			if (purple_strequal(moodinfo->name, "text")) {
 				if (!moodtext) /* only pick the first one */
 					moodtext = purple_xmlnode_get_data(moodinfo);
 			} else {

mercurial