diff options
author | James Booth <boothj5@gmail.com> | 2014-12-10 22:23:33 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-10 22:23:33 +0000 |
commit | 9ba5a576bab1c56713fc9683c0adc8cdfaab5e50 (patch) | |
tree | fcd7d42b71d62223ae3a83de8deb30121530b5e0 /src/xmpp | |
parent | c8ae55a88c0d013eabb684395e5293c608de5574 (diff) | |
download | profani-tty-9ba5a576bab1c56713fc9683c0adc8cdfaab5e50.tar.gz |
Split private message handling to separate functions
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/message.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index b0b17214..a2dadb9f 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -438,9 +438,9 @@ _chat_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, char *message = xmpp_stanza_get_text(body); if (message != NULL) { if (delayed) { - handle_delayed_message(jid->str, message, tv_stamp, TRUE); + handle_delayed_private_message(jid->str, message, tv_stamp); } else { - handle_incoming_message(jid->str, message, TRUE); + handle_incoming_private_message(jid->str, message); } xmpp_free(ctx, message); } @@ -489,9 +489,9 @@ _chat_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, char *message = xmpp_stanza_get_text(body); if (message != NULL) { if (delayed) { - handle_delayed_message(jid->barejid, message, tv_stamp, FALSE); + handle_delayed_message(jid->barejid, message, tv_stamp); } else { - handle_incoming_message(jid->barejid, message, FALSE); + handle_incoming_message(jid->barejid, message); } xmpp_free(ctx, message); } |