Showing history from current log in chat windows

This commit is contained in:
James Booth
2012-10-14 04:10:03 +01:00
parent 18c6bb9219
commit 579201636e
6 changed files with 127 additions and 18 deletions

View File

@@ -653,13 +653,13 @@ _cmd_msg(const char * const inp, struct cmd_help_t help)
if (msg != NULL) {
jabber_send(msg, usr);
win_show_outgoing_msg("me", usr, msg);
if (prefs_get_chlog()) {
const char *jid = jabber_get_jid();
chat_log_chat(jid, usr, msg, OUT);
}
win_show_outgoing_msg("me", usr, msg);
} else {
cons_show("Usage: %s", help.usage);
}