mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 16:26:21 +00:00
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:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user