Ignore:
Timestamp:
2021-04-16T10:13:51Z (2 months ago)
Author:
/ <>
Children:
21a328ab
Parents:
a42169b
Message:

less bloat more consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    ra42169b r416b973  
    10071007{
    10081008        struct jabber_data *jd = ic->proto_data;
     1009    struct prpl *prpl = ic->acc->prpl;
    10091010        struct xt_node *query, *id, *c;
    10101011        char *feature;
     
    10141015        }
    10151016
    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         }
     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    }
    10251023
    10261024        if (xt_find_node_by_attr(query->children, "feature", "var", XMLNS_CARBONS) &&
     
    10511049                }
    10521050        }
    1053 
    1054         jabber_block_feature(ic);
    10551051
    10561052        return XT_HANDLED;
Note: See TracChangeset for help on using the changeset viewer.