about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-04-28 04:14:23 +0100
committerJames Booth <boothj5@gmail.com>2013-04-28 04:14:23 +0100
commitc1cf0b433eb13823509b3de2f3e910c3fc009af7 (patch)
tree9673b15e027c9ebe2cb17448d399beef8d19213a /src/command
parent34217e4d44bef20ddac3aa454ce733ad73ddf769 (diff)
downloadprofani-tty-c1cf0b433eb13823509b3de2f3e910c3fc009af7.tar.gz
Fixed bug where /msg not logging chat
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 6e1b97d0..338fd27f 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -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);