Ignore:
Timestamp:
2021-03-12T11:37:53Z (3 years ago)
Author:
/ <>
Children:
1849c5b, 416b973
Parents:
75222ab
git-author:
/ <> (09-03-21 15:47:43)
git-committer:
/ <> (12-03-21 11:37:53)
Message:

xmpp xep-0191/blocklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    r75222ab ra42169b  
    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.