about summary refs log tree commit diff stats
path: root/src/jabber.c
diff options
context:
space:
mode:
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;
 }