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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user