From d50754aac69cccf653d8c5599d5ae1d1938944b9 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 16 Mar 2015 01:39:43 +0000 Subject: [PATCH] Removed window checks before logging in cmd_msg --- src/command/commands.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/command/commands.c b/src/command/commands.c index c53782c7..07c869b8 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1375,9 +1375,7 @@ cmd_msg(gchar **args, struct cmd_help_t help) char *id = message_send_chat_encrypted(barejid, encrypted); otr_free_message(encrypted); ui_outgoing_chat_msg(barejid, msg, id); - if (win_type == WIN_CHAT || win_type == WIN_CONSOLE) { - chat_log_otr_msg_out(barejid, msg); - } + chat_log_otr_msg_out(barejid, msg); free(id); } else { cons_show_error("Failed to encrypt and send message,"); @@ -1400,18 +1398,14 @@ cmd_msg(gchar **args, struct cmd_help_t help) id = message_send_chat(barejid, msg); } ui_outgoing_chat_msg(barejid, msg, id); - if (win_type == WIN_CHAT || win_type == WIN_CONSOLE) { - chat_log_msg_out(barejid, msg); - } + chat_log_msg_out(barejid, msg); free(id); } return TRUE; #else char *id = message_send_chat(barejid, msg); ui_outgoing_chat_msg(barejid, msg, id); - if (win_type == WIN_CHAT || win_type == WIN_CONSOLE) { - chat_log_msg_out(barejid, msg); - } + chat_log_msg_out(barejid, msg); free(id); return TRUE; #endif