Changeset c0e4c22


Ignore:
Timestamp:
2015-03-15T09:31:18Z (9 years ago)
Author:
dequis <dx@…>
Children:
830864d
Parents:
fc650a8
git-author:
dequis <dx@…> (05-03-15 07:21:09)
git-committer:
dequis <dx@…> (15-03-15 09:31:18)
Message:

hipchat: minor cleanup of jabber_parse_muc_list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/hipchat.c

    rfc650a8 rc0e4c22  
    134134                struct groupchat *gc;
    135135                struct irc_channel *ircc;
    136                 //char *participants = NULL;
    137136                char *topic = NULL;
    138137                gboolean new_room = FALSE;
     
    142141                imcb_log(ic, "Debug: adding MUC to channel list: %s - '%s'", jid, name);
    143142
    144                 c2 = xt_find_node_by_attr(c->children, "x", "xmlns", XMLNS_HIPCHAT_MUC);
    145 
    146                 if (c2) {
    147                         struct xt_node *node;
    148                         /*
    149                         if ( ( node = xt_find_node( c2->children, "num_participants" ) ) ) {
    150                                 participants = node->text;
    151                         }
    152                         */
    153                         if ((node = xt_find_node(c2->children, "topic"))) {
    154                                 topic = node->text;
    155                         }
     143                if ((c2 = xt_find_node_by_attr(c->children, "x", "xmlns", XMLNS_HIPCHAT_MUC)) &&
     144                    (c2 = xt_find_node(c2->children, "topic"))) {
     145                        topic = c2->text;
    156146                }
    157147
Note: See TracChangeset for help on using the changeset viewer.