about summary refs log tree commit diff stats
path: root/src/jabber.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-07-22 20:53:55 +0100
committerJames Booth <boothj5@gmail.com>2012-07-22 20:53:55 +0100
commit83ef1d562c0c8fa4148193c46bbc7f519c80badc (patch)
treee3b01702d4175e648ec3f1d3098d087a6cc464a9 /src/jabber.c
parent255bf5d5b14498e3a6452cd2670b42155e22b6c8 (diff)
downloadprofani-tty-83ef1d562c0c8fa4148193c46bbc7f519c80badc.tar.gz
Added simple chat log
Diffstat (limited to 'src/jabber.c')
-rw-r--r--src/jabber.c5
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;
 }