mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed window checks before logging in cmd_msg
This commit is contained in:
parent
981618b7da
commit
d50754aac6
@ -1375,9 +1375,7 @@ cmd_msg(gchar **args, struct cmd_help_t help)
|
|||||||
char *id = message_send_chat_encrypted(barejid, encrypted);
|
char *id = message_send_chat_encrypted(barejid, encrypted);
|
||||||
otr_free_message(encrypted);
|
otr_free_message(encrypted);
|
||||||
ui_outgoing_chat_msg(barejid, msg, id);
|
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);
|
free(id);
|
||||||
} else {
|
} else {
|
||||||
cons_show_error("Failed to encrypt and send message,");
|
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);
|
id = message_send_chat(barejid, msg);
|
||||||
}
|
}
|
||||||
ui_outgoing_chat_msg(barejid, msg, id);
|
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);
|
free(id);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
char *id = message_send_chat(barejid, msg);
|
char *id = message_send_chat(barejid, msg);
|
||||||
ui_outgoing_chat_msg(barejid, msg, id);
|
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);
|
free(id);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user