Changes in protocols/jabber/iq.c [a42169b:416b973]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
ra42169b r416b973 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.