diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 08:44:26 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 08:51:43 +0100 |
commit | 86bcadcbe3806439ca2039b39af08afd4db70429 (patch) | |
tree | 65cdedab59a065e06be84cc40e286a033308a13c /src/ui | |
parent | 36713a2ed73368cf1892ce1fa43bb74106657391 (diff) | |
download | profani-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.c | 6 |
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(); } |