From d011d6707c59b39dec9e83611592ee9c4b0b5a4d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 5 May 2022 23:41:45 +0200 Subject: ox: Add /ox log command --- src/config/preferences.c | 6 ++++++ src/config/preferences.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/config') diff --git a/src/config/preferences.c b/src/config/preferences.c index 62b75051..47be88fd 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1882,6 +1882,8 @@ _get_group(preference_t pref) case PREF_OMEMO_POLICY: case PREF_OMEMO_TRUST_MODE: return PREF_GROUP_OMEMO; + case PREF_OX_LOG: + return PREF_GROUP_OX; default: return NULL; } @@ -2153,6 +2155,8 @@ _get_key(preference_t pref) return "stamp.outgoing"; case PREF_INCOMING_STAMP: return "stamp.incoming"; + case PREF_OX_LOG: + return "log"; default: return NULL; } @@ -2297,6 +2301,8 @@ _get_default_string(preference_t pref) return NULL; case PREF_URL_SAVE_CMD: return NULL; // Default to built-in method. + case PREF_OX_LOG: + return "redact"; default: return NULL; } diff --git a/src/config/preferences.h b/src/config/preferences.h index 46f2669a..5fef498d 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -179,6 +179,7 @@ typedef enum { PREF_OUTGOING_STAMP, PREF_INCOMING_STAMP, PREF_NOTIFY_ROOM_OFFLINE, + PREF_OX_LOG, } preference_t; typedef struct prof_alias_t -- cgit 1.4.1-2-gfad0