1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Removed window checks before logging in cmd_msg

This commit is contained in:
James Booth 2015-03-16 01:39:43 +00:00
parent 981618b7da
commit d50754aac6

View File

@ -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