diff options
author | James Booth <boothj5@gmail.com> | 2015-03-14 16:44:21 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-14 16:44:21 +0000 |
commit | ede3368f7ad0f66928cdf506f3c51ffe64653a89 (patch) | |
tree | 20811f184d8905e1ef65feb70591128e52113009 /src | |
parent | 2fc7937dcd6949bb322bbfdd33c903792324719b (diff) | |
download | profani-tty-ede3368f7ad0f66928cdf506f3c51ffe64653a89.tar.gz |
Check for sent and received carbons
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index c0c37f4d..a3da01ee 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -455,7 +455,7 @@ _chat_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, xmpp_stanza_t *carbons = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CARBONS); if(carbons) { char *name = xmpp_stanza_get_name(carbons); - if (g_strcmp0(name, "received") == 0) { + if ((g_strcmp0(name, "received") == 0) || (g_strcmp0(name, "sent")) == 0){ xmpp_stanza_t *forwarded = xmpp_stanza_get_child_by_ns(carbons, STANZA_NS_FORWARD); xmpp_stanza_t *message = xmpp_stanza_get_child_by_name(forwarded, STANZA_NAME_MESSAGE); |