changeset 27443:1a563a740c7f

merge of '9ec118f84a3907ca01880d27a4988a4f41ea8914' and 'fcdbefd606637763f30846d5b65c0e68471757f5'
author Paul Aurich <paul@darkrain42.org>
date Sun, 05 Jul 2009 22:59:43 +0000
parents d6b0c0d9c789 (current diff) da8d20538145 (diff)
children c4196cd47602
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sun Jul 05 22:22:03 2009 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Jul 05 22:59:43 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);