Changes in / [1849c5b:ef70f9f]
- Location:
- protocols/jabber
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/Makefile
r1849c5b ref70f9f 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 block.o15 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o hipchat.o 16 16 17 17 LFLAGS += -r -
protocols/jabber/iq.c
r1849c5b ref70f9f 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; -
protocols/jabber/jabber.h
r1849c5b ref70f9f 109 109 GHashTable *buddies; 110 110 111 GSList *features;112 111 GSList *filetransfers; 113 112 GSList *streamhosts; … … 245 244 #define XMLNS_BYTESTREAMS "http://jabber.org/protocol/bytestreams" /* XEP-0065 */ 246 245 #define XMLNS_IBB "http://jabber.org/protocol/ibb" /* XEP-0047 */ 247 #define XMLNS_BLOCK "urn:xmpp:blocking" /* XEP-0191 */248 246 249 247 /* Hipchat protocol extensions*/ … … 285 283 int presence_send_update(struct im_connection *ic); 286 284 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);294 285 295 286 /* jabber_util.c */
Note: See TracChangeset
for help on using the changeset viewer.