From 8de308c96af476de607d7ba5ecee5dc7c990ffc5 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 29 Apr 2015 21:55:09 +0100 Subject: Changed message when sending non encrypted message with OTR policy always --- src/otr/otr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/otr/otr.c') 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); -- cgit 1.4.1-2-gfad0 '>log blame commit diff stats
path: root/ranger/ext/rifle.py
blob: ea2c113b340d1533de41a70bca2850fd5b88a00a (plain) (tree)
1
2
3
4
5
6
7
8
9
10