Changeset 21a328ab for protocols/jabber/iq.c
- Timestamp:
- 2021-04-16T10:15:47Z (4 years ago)
- Parents:
- 2378eca2 (diff), 416b973 (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
r2378eca2 r21a328ab 1007 1007 { 1008 1008 struct jabber_data *jd = ic->proto_data; 1009 struct prpl *prpl = ic->acc->prpl; 1009 1010 struct xt_node *query, *id, *c; 1010 1011 char *feature; … … 1014 1015 } 1015 1016 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 } 1025 1023 1026 1024 if (xt_find_node_by_attr(query->children, "feature", "var", XMLNS_CARBONS) && … … 1051 1049 } 1052 1050 } 1053 1054 jabber_block_feature(ic);1055 1051 1056 1052 return XT_HANDLED;
Note: See TracChangeset
for help on using the changeset viewer.