aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c12
1 files 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