Added simple chat log

This commit is contained in:
James Booth
2012-07-22 20:53:55 +01:00
parent 255bf5d5b1
commit 83ef1d562c
5 changed files with 93 additions and 1 deletions

View File

@@ -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;
}