diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 08:57:35 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 08:57:35 +0100 |
commit | 7d596d8cef0c453ab2a4c57a7e5d51634e31af25 (patch) | |
tree | 14ec65a27e0735aec5ee068b641b51700dcef9ef /src/ui | |
parent | 86bcadcbe3806439ca2039b39af08afd4db70429 (diff) | |
download | profani-tty-7d596d8cef0c453ab2a4c57a7e5d51634e31af25.tar.gz |
Make /sendfile in PGP session configurable
`/pgp sendfile on` allows unencrypted file transfer in an PGP 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 4877725d..c0abbc36 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2098,6 +2098,12 @@ cons_show_pgp_prefs(void) char ch = prefs_get_pgp_char(); cons_show("PGP char (/pgp char) : %c", ch); + if (prefs_get_boolean(PREF_PGP_SENDFILE)) { + cons_show("Allow sending unencrypted files via /sendfile while otherwise using PGP (/pgp sendfile): ON"); + } else { + cons_show("Allow sending unencrypted files via /sendfile while otherwise using PGP (/pgp sendfile): OFF"); + } + cons_alert(); } |