comparison libpurple/protocols/jabber/presence.c @ 27359:da8d20538145

Minor formatting/style/purple_strequal
author Paul Aurich <paul@darkrain42.org>
date Sun, 05 Jul 2009 22:39:34 +0000
parents 01f1929d0936
children c4196cd47602
comparison
equal deleted inserted replaced
27358:46e0f65b14a1 27359:da8d20538145
592 xmlnode *z; 592 xmlnode *z;
593 593
594 muc = TRUE; 594 muc = TRUE;
595 if((z = xmlnode_get_child(y, "status"))) { 595 if((z = xmlnode_get_child(y, "status"))) {
596 const char *code = xmlnode_get_attrib(z, "code"); 596 const char *code = xmlnode_get_attrib(z, "code");
597 if(code && !strcmp(code, "201")) { 597 if (purple_strequal(code, "201")) {
598 if((chat = jabber_chat_find(js, jid->node, jid->domain))) { 598 if((chat = jabber_chat_find(js, jid->node, jid->domain))) {
599 chat->config_dialog_type = PURPLE_REQUEST_ACTION; 599 chat->config_dialog_type = PURPLE_REQUEST_ACTION;
600 chat->config_dialog_handle = 600 chat->config_dialog_handle =
601 purple_request_action(js->gc, 601 purple_request_action(js->gc,
602 _("Create New Room"), 602 _("Create New Room"),
608 purple_connection_get_account(js->gc), NULL, chat->conv, 608 purple_connection_get_account(js->gc), NULL, chat->conv,
609 chat, 2, 609 chat, 2,
610 _("_Configure Room"), G_CALLBACK(jabber_chat_request_room_configure), 610 _("_Configure Room"), G_CALLBACK(jabber_chat_request_room_configure),
611 _("_Accept Defaults"), G_CALLBACK(jabber_chat_create_instant_room)); 611 _("_Accept Defaults"), G_CALLBACK(jabber_chat_create_instant_room));
612 } 612 }
613 } else if(code && !strcmp(code, "210")) { 613 } else if (purple_strequal(code, "210")) {
614 /* server rewrote room-nick */ 614 /* server rewrote room-nick */
615 if((chat = jabber_chat_find(js, jid->node, jid->domain))) { 615 if((chat = jabber_chat_find(js, jid->node, jid->domain))) {
616 g_free(chat->handle); 616 g_free(chat->handle);
617 chat->handle = g_strdup(jid->resource); 617 chat->handle = g_strdup(jid->resource);
618 } 618 }