mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 22:26:21 +00:00
Added setting /otr log on|off|redact
This commit is contained in:
@@ -304,6 +304,7 @@ _get_group(preference_t pref)
|
||||
return "notifications";
|
||||
case PREF_CHLOG:
|
||||
case PREF_GRLOG:
|
||||
case PREF_OTR_LOG:
|
||||
return "logging";
|
||||
case PREF_AUTOAWAY_CHECK:
|
||||
case PREF_AUTOAWAY_MODE:
|
||||
@@ -365,6 +366,8 @@ _get_key(preference_t pref)
|
||||
return "autoaway.message";
|
||||
case PREF_CONNECT_ACCOUNT:
|
||||
return "account";
|
||||
case PREF_OTR_LOG:
|
||||
return "otr";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
@@ -390,6 +393,8 @@ _get_default_string(preference_t pref)
|
||||
{
|
||||
case PREF_AUTOAWAY_MODE:
|
||||
return "off";
|
||||
case PREF_OTR_LOG:
|
||||
return "redact";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,8 @@ typedef enum {
|
||||
PREF_AUTOAWAY_CHECK,
|
||||
PREF_AUTOAWAY_MODE,
|
||||
PREF_AUTOAWAY_MESSAGE,
|
||||
PREF_CONNECT_ACCOUNT
|
||||
PREF_CONNECT_ACCOUNT,
|
||||
PREF_OTR_LOG
|
||||
} preference_t;
|
||||
|
||||
void prefs_load(void);
|
||||
|
||||
Reference in New Issue
Block a user