about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-17 08:44:26 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-17 08:51:43 +0100
commit86bcadcbe3806439ca2039b39af08afd4db70429 (patch)
tree65cdedab59a065e06be84cc40e286a033308a13c /src/ui
parent36713a2ed73368cf1892ce1fa43bb74106657391 (diff)
downloadprofani-tty-86bcadcbe3806439ca2039b39af08afd4db70429.tar.gz
Make /sendfile in OTR session configurable
`/otr sendfile on` allows unencrypted file transfer in an OMEMO session.

Regards https://github.com/profanity-im/profanity/pull/1270
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 6de8258f..4877725d 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2070,6 +2070,12 @@ cons_show_otr_prefs(void)
     char ch = prefs_get_otr_char();
     cons_show("OTR char (/otr char)     : %c", ch);
 
+    if (prefs_get_boolean(PREF_OTR_SENDFILE)) {
+        cons_show("Allow sending unencrypted files in an OTR session via /sendfile (/otr sendfile): ON");
+    } else {
+        cons_show("Allow sending unencrypted files in an OTR session via /sendfile (/otr sendfile): OFF");
+    }
+
     cons_alert();
 }