aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-03-16 01:39:43 +0000
committerJames Booth <boothj5@gmail.com>2015-03-16 01:39:43 +0000
commitd50754aac69cccf653d8c5599d5ae1d1938944b9 (patch)
tree4b4d9aeee3c3a8c5ae831fb40788c618f9201eb8 /src/command
parent981618b7da2d151d51987c3942e959d6838b08ae (diff)
downloadprofani-tty-d50754aac69cccf653d8c5599d5ae1d1938944b9.tar.gz
Removed window checks before logging in cmd_msg
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