Ignore:
Timestamp:
2021-03-29T14:08:27Z (4 years ago)
Author:
/ <>
Children:
a181ec1
Parents:
ef70f9f (diff), a42169b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'jabberblock' into integration_tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    ref70f9f r1849c5b  
    388388        struct xt_node *response;
    389389        struct jabber_data *jd = ic->proto_data;
    390        
     390
    391391        response = jabber_make_packet("iq", "result", jd->me, NULL);
    392392
     
    10071007{
    10081008        struct jabber_data *jd = ic->proto_data;
    1009         struct xt_node *query, *id;
     1009        struct xt_node *query, *id, *c;
     1010        char *feature;
    10101011
    10111012        if (!(query = xt_find_node(node->children, "query"))) {
    10121013                return XT_HANDLED;
     1014        }
     1015
     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;
    10131024        }
    10141025
     
    10401051                }
    10411052        }
     1053
     1054        jabber_block_feature(ic);
    10421055
    10431056        return XT_HANDLED;
Note: See TracChangeset for help on using the changeset viewer.