Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    r416b973 ra42169b  
    10071007{
    10081008        struct jabber_data *jd = ic->proto_data;
    1009     struct prpl *prpl = ic->acc->prpl;
    10101009        struct xt_node *query, *id, *c;
    10111010        char *feature;
     
    10151014        }
    10161015
    1017     if (xt_find_node_by_attr(query->children, "feature", "var", XMLNS_BLOCK)) {
    1018         prpl->add_deny = jabber_buddy_block;
    1019         prpl->rem_deny = jabber_buddy_unblock;
    1020         prpl->add_permit = jabber_buddy_permit;
    1021         prpl->rem_permit = jabber_buddy_unpermit;
    1022     }
     1016        c = query->children;
     1017
     1018        while ((c = xt_find_node(c, "feature"))) {
     1019                feature = xt_find_attr(c, "var");
     1020                if (feature) {
     1021                        jd->features = g_slist_append(jd->features, g_strdup(feature));
     1022                }
     1023                c = c->next;
     1024        }
    10231025
    10241026        if (xt_find_node_by_attr(query->children, "feature", "var", XMLNS_CARBONS) &&
     
    10491051                }
    10501052        }
     1053
     1054        jabber_block_feature(ic);
    10511055
    10521056        return XT_HANDLED;
Note: See TracChangeset for help on using the changeset viewer.