about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-04-29 21:55:09 +0100
committerJames Booth <boothj5@gmail.com>2015-04-29 21:55:09 +0100
commit8de308c96af476de607d7ba5ecee5dc7c990ffc5 (patch)
tree5ffc1131dfbee3fdfdd435416b79922ef60a2078 /src/otr/otr.c
parent15b34692fdd7cd6c2d377bc0daa2b8002cc318f3 (diff)
downloadprofani-tty-8de308c96af476de607d7ba5ecee5dc7c990ffc5.tar.gz
Changed message when sending non encrypted message with OTR policy always
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index c8518c70..7507cd56 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -322,7 +322,7 @@ otr_on_message_send(const char * const barejid, const char * const message)
 
     if (otr_is_secure(barejid)) {
         char *encrypted = otr_encrypt_message(barejid, message);
-        if (encrypted != NULL) {
+        if (encrypted) {
             id = message_send_chat_encrypted(barejid, encrypted);
             chat_log_otr_msg_out(barejid, message);
             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) {
-        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) {
         char *otr_tagged_msg = otr_tag_message(message);