1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Changed message when sending non encrypted message with OTR policy always

This commit is contained in:
James Booth 2015-04-29 21:55:09 +01:00
parent 15b34692fd
commit 8de308c96a

View File

@ -322,7 +322,7 @@ otr_on_message_send(const char * const barejid, const char * const message)
if (otr_is_secure(barejid)) { if (otr_is_secure(barejid)) {
char *encrypted = otr_encrypt_message(barejid, message); char *encrypted = otr_encrypt_message(barejid, message);
if (encrypted != NULL) { if (encrypted) {
id = message_send_chat_encrypted(barejid, encrypted); id = message_send_chat_encrypted(barejid, encrypted);
chat_log_otr_msg_out(barejid, message); chat_log_otr_msg_out(barejid, message);
ui_outgoing_chat_msg(barejid, message, id); ui_outgoing_chat_msg(barejid, message, id);
@ -332,7 +332,7 @@ otr_on_message_send(const char * const barejid, const char * const message)
} }
} else if (policy == PROF_OTRPOLICY_ALWAYS) { } else if (policy == PROF_OTRPOLICY_ALWAYS) {
cons_show_error("Failed to send message. Please check OTR policy"); cons_show_error("Failed to send message. OTR policy set to: always");
} else if (policy == PROF_OTRPOLICY_OPPORTUNISTIC) { } else if (policy == PROF_OTRPOLICY_OPPORTUNISTIC) {
char *otr_tagged_msg = otr_tag_message(message); char *otr_tagged_msg = otr_tag_message(message);