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:
Michael Vetter
2020-02-17 08:57:35 +01:00
parent 86bcadcbe3
commit 7d596d8cef
6 changed files with 33 additions and 3 deletions

View File

@@ -1793,6 +1793,7 @@ _get_group(preference_t pref)
case PREF_OTR_SENDFILE:
return PREF_GROUP_OTR;
case PREF_PGP_LOG:
case PREF_PGP_SENDFILE:
return PREF_GROUP_PGP;
case PREF_BOOKMARK_INVITE:
case PREF_ROOM_LIST_CACHE:
@@ -2003,6 +2004,8 @@ _get_key(preference_t pref)
return "titlebar.muc.title";
case PREF_PGP_LOG:
return "log";
case PREF_PGP_SENDFILE:
return "sendfile";
case PREF_TLS_CERTPATH:
return "tls.certpath";
case PREF_TLS_SHOW:

View File

@@ -142,6 +142,7 @@ typedef enum {
PREF_ENC_WARN,
PREF_TITLEBAR_MUC_TITLE,
PREF_PGP_LOG,
PREF_PGP_SENDFILE,
PREF_TLS_CERTPATH,
PREF_TLS_SHOW,
PREF_LASTACTIVITY,