Changeset 1849c5b for protocols/jabber/iq.c
- Timestamp:
- 2021-03-29T14:08:27Z (4 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
ref70f9f r1849c5b 388 388 struct xt_node *response; 389 389 struct jabber_data *jd = ic->proto_data; 390 390 391 391 response = jabber_make_packet("iq", "result", jd->me, NULL); 392 392 … … 1007 1007 { 1008 1008 struct jabber_data *jd = ic->proto_data; 1009 struct xt_node *query, *id; 1009 struct xt_node *query, *id, *c; 1010 char *feature; 1010 1011 1011 1012 if (!(query = xt_find_node(node->children, "query"))) { 1012 1013 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; 1013 1024 } 1014 1025 … … 1040 1051 } 1041 1052 } 1053 1054 jabber_block_feature(ic); 1042 1055 1043 1056 return XT_HANDLED;
Note: See TracChangeset
for help on using the changeset viewer.