Changeset 1e2094e for protocols/jabber/message.c
- Timestamp:
- 2015-11-23T22:09:39Z (9 years ago)
- Parents:
- ad9ac5d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/message.c
rad9ac5d r1e2094e 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
Note: See TracChangeset
for help on using the changeset viewer.