# HG changeset patch # User Paul Aurich # Date 1246833574 0 # Node ID da8d20538145b6863c7bb2ad4d87e8e5281bb153 # Parent 46e0f65b14a156a19a8e73f93135492b2228579f Minor formatting/style/purple_strequal diff -r 46e0f65b14a1 -r da8d20538145 libpurple/protocols/jabber/presence.c --- 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);