1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed bug where /msg not logging chat

This commit is contained in:
James Booth 2013-04-28 04:14:23 +01:00
parent 34217e4d44
commit c1cf0b433e

View File

@ -1892,7 +1892,7 @@ _cmd_msg(gchar **args, struct cmd_help_t help)
message_send(msg, usr);
ui_outgoing_msg("me", usr, msg);
if ((win_type == WIN_CHAT) && prefs_get_boolean(PREF_CHLOG)) {
if (((win_type == WIN_CHAT) || (win_type == WIN_CONSOLE)) && prefs_get_boolean(PREF_CHLOG)) {
const char *jid = jabber_get_jid();
Jid *jidp = jid_create(jid);
chat_log_chat(jidp->barejid, usr, msg, PROF_OUT_LOG, NULL);