Moved chat logging to profanity module

Removed jabber modules dependency on chat log
This commit is contained in:
James Booth
2012-10-02 22:00:05 +01:00
parent ee8407f4a4
commit a970b9ea86
3 changed files with 29 additions and 15 deletions

View File

@@ -101,6 +101,15 @@ prof_handle_incoming_message(char *from, char *message)
{
win_show_incomming_msg(from, message);
win_page_off();
if (prefs_get_chlog()) {
char from_cpy[strlen(from) + 1];
strcpy(from_cpy, from);
char *short_from = strtok(from_cpy, "/");
const char *jid = jabber_get_jid();
chat_log_chat(jid, short_from, message, IN);
}
}
void