changeset 27441:da8d20538145

Minor formatting/style/purple_strequal
author Paul Aurich <paul@darkrain42.org>
date Sun, 05 Jul 2009 22:39:34 +0000
parents 46e0f65b14a1
children 1a563a740c7f
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sun Jul 05 19:17:45 2009 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Jul 05 22:39:34 2009 +0000
@@ -594,7 +594,7 @@
 				muc = TRUE;
 				if((z = xmlnode_get_child(y, "status"))) {
 					const char *code = xmlnode_get_attrib(z, "code");
-					if(code && !strcmp(code, "201")) {
+					if (purple_strequal(code, "201")) {
 						if((chat = jabber_chat_find(js, jid->node, jid->domain))) {
 							chat->config_dialog_type = PURPLE_REQUEST_ACTION;
 							chat->config_dialog_handle =
@@ -610,7 +610,7 @@
 										_("_Configure Room"), G_CALLBACK(jabber_chat_request_room_configure),
 										_("_Accept Defaults"), G_CALLBACK(jabber_chat_create_instant_room));
 						}
-					} else if(code && !strcmp(code, "210")) {
+					} else if (purple_strequal(code, "210")) {
 						/*  server rewrote room-nick */
 						if((chat = jabber_chat_find(js, jid->node, jid->domain))) {
 							g_free(chat->handle);