Changes in protocols/jabber/iq.c [a42169b:399d65a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
ra42169b r399d65a 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, *c; 1010 char *feature; 1009 struct xt_node *query, *id; 1011 1010 1012 1011 if (!(query = xt_find_node(node->children, "query"))) { 1013 1012 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;1024 1013 } 1025 1014 … … 1051 1040 } 1052 1041 } 1053 1054 jabber_block_feature(ic);1055 1042 1056 1043 return XT_HANDLED;
Note: See TracChangeset
for help on using the changeset viewer.