pidgin: fcdbefd6: Minor formatting/style/purple_strequal

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Jul 5 20:00:41 EDT 2009


-----------------------------------------------------------------
Revision: fcdbefd606637763f30846d5b65c0e68471757f5
Ancestor: d40ff779cb2ac50fdebb641c6e7c64903dbd4421
Author: darkrain42 at pidgin.im
Date: 2009-07-05T22:39:34
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/fcdbefd606637763f30846d5b65c0e68471757f5

Modified files:
        libpurple/protocols/jabber/presence.c

ChangeLog: 

Minor formatting/style/purple_strequal

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c	5e9b0d51856feb3b541a226f70c7b7d83cd52c98
+++ libpurple/protocols/jabber/presence.c	440b4881723f2dbb08b88fa197c95d338012308f
@@ -594,7 +594,7 @@ void jabber_presence_parse(JabberStream 
 				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 @@ void jabber_presence_parse(JabberStream 
 										_("_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);


More information about the Commits mailing list