diff options
author | James Booth <boothj5@gmail.com> | 2012-07-22 20:53:55 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-07-22 20:53:55 +0100 |
commit | 83ef1d562c0c8fa4148193c46bbc7f519c80badc (patch) | |
tree | e3b01702d4175e648ec3f1d3098d087a6cc464a9 /src/jabber.c | |
parent | 255bf5d5b14498e3a6452cd2670b42155e22b6c8 (diff) | |
download | profani-tty-83ef1d562c0c8fa4148193c46bbc7f519c80badc.tar.gz |
Added simple chat log
Diffstat (limited to 'src/jabber.c')
-rw-r--r-- | src/jabber.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jabber.c b/src/jabber.c index 7d35f023..d9d3827c 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -27,6 +27,7 @@ #include "jabber.h" #include "common.h" #include "log.h" +#include "chat_log.h" #include "contact_list.h" #include "ui.h" #include "util.h" @@ -165,6 +166,8 @@ void jabber_send(const char * const msg, const char * const recipient) free(coded_msg); free(coded_msg2); free(coded_msg3); + + chat_log_chat("me", msg); } void jabber_roster_request(void) @@ -250,6 +253,8 @@ static int _jabber_message_handler(xmpp_conn_t * const conn, win_show_incomming_msg(from, message); win_page_off(); + chat_log_chat(from, message); + return 1; } |