Changeset d11ccbf
- Timestamp:
- 2015-12-16T15:35:04Z (9 years ago)
- Branches:
- master
- Children:
- ea39049
- Parents:
- 3a620ff
- git-author:
- dequis <dx@…> (23-11-15 22:09:39)
- git-committer:
- dequis <dx@…> (16-12-15 15:35:04)
- Location:
- protocols/jabber
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/message.c
r3a620ff rd11ccbf 27 27 { 28 28 struct im_connection *ic = data; 29 struct jabber_data *jd = ic->proto_data; 29 30 char *from = xt_find_attr(node, carbons_sent ? "to" : "from"); 30 31 char *type = xt_find_attr(node, "type"); … … 37 38 if (!from) { 38 39 return XT_HANDLED; /* Consider this packet corrupted. */ 40 } 41 42 /* try to detect hipchat's own version of self-messages */ 43 if (jd->flags & JFLAG_HIPCHAT) { 44 struct xt_node *c; 45 46 if ((c = xt_find_node_by_attr(node->children, "delay", "xmlns", XMLNS_DELAY)) && 47 (s = xt_find_attr(c, "from_jid")) && 48 jabber_compare_jid(s, jd->me)) { 49 carbons_sent = TRUE; 50 } 39 51 } 40 52 -
protocols/jabber/presence.c
r3a620ff rd11ccbf 222 222 cap = xt_new_node("c", NULL, NULL); 223 223 xt_add_attr(cap, "xmlns", XMLNS_CAPS); 224 xt_add_attr(cap, "node", "http://bitlbee.org/xmpp/caps"); 224 225 if (jd->flags & JFLAG_HIPCHAT) { 226 /* hipchat specific node, whitelisted by request to receive self-messages */ 227 xt_add_attr(cap, "node", "http://bitlbee.org/xmpp/caps/hipchat"); 228 } else { 229 xt_add_attr(cap, "node", "http://bitlbee.org/xmpp/caps"); 230 } 225 231 xt_add_attr(cap, "ver", BITLBEE_VERSION); /* The XEP wants this hashed, but nobody's doing that. */ 226 232 xt_add_child(node, cap);
Note: See TracChangeset
for help on using the changeset viewer.