Changeset a42169b for protocols/jabber
- Timestamp:
- 2021-03-12T11:37:53Z (4 years ago)
- Children:
- 1849c5b, 416b973
- Parents:
- 75222ab
- git-author:
- / <> (09-03-21 15:47:43)
- git-committer:
- / <> (12-03-21 11:37:53)
- Location:
- protocols/jabber
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/Makefile
r75222ab ra42169b 13 13 14 14 # [SH] Program variables 15 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o hipchat.o 15 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o hipchat.o block.o 16 16 17 17 LFLAGS += -r -
protocols/jabber/iq.c
r75222ab ra42169b 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; -
protocols/jabber/jabber.h
r75222ab ra42169b 109 109 GHashTable *buddies; 110 110 111 GSList *features; 111 112 GSList *filetransfers; 112 113 GSList *streamhosts; … … 244 245 #define XMLNS_BYTESTREAMS "http://jabber.org/protocol/bytestreams" /* XEP-0065 */ 245 246 #define XMLNS_IBB "http://jabber.org/protocol/ibb" /* XEP-0047 */ 247 #define XMLNS_BLOCK "urn:xmpp:blocking" /* XEP-0191 */ 246 248 247 249 /* Hipchat protocol extensions*/ … … 283 285 int presence_send_update(struct im_connection *ic); 284 286 int presence_send_request(struct im_connection *ic, char *handle, char *request); 287 288 /* block.c */ 289 void jabber_buddy_block(struct im_connection *ic, char *who); 290 void jabber_buddy_unblock(struct im_connection *ic, char *who); 291 void jabber_buddy_permit(struct im_connection *ic, char *who); 292 void jabber_buddy_unpermit(struct im_connection *ic, char *who); 293 int jabber_block_feature(struct im_connection *ic); 285 294 286 295 /* jabber_util.c */
Note: See TracChangeset
for help on using the changeset viewer.