about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-10 14:52:42 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-10 14:52:42 +0100
commitdd8086772d274542a28b7af045572933f0b6ac7d (patch)
treec9a8d895967ab68731ad01ac68e334ce1fc96c65 /src/config
parentc2d70a071fb107a98f9b057eab4e5021f0eb7187 (diff)
downloadprofani-tty-dd8086772d274542a28b7af045572933f0b6ac7d.tar.gz
xep-0308: create setting to toggle lmc
and print settings if only `/correction` is run.
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c3
-rw-r--r--src/config/preferences.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index d817f907..dea6a529 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1786,6 +1786,7 @@ _get_group(preference_t pref)
         case PREF_RECEIPTS_REQUEST:
         case PREF_REVEAL_OS:
         case PREF_TLS_CERTPATH:
+        case PREF_CORRECTION_ALLOW:
             return PREF_GROUP_CONNECTION;
         case PREF_OTR_LOG:
         case PREF_OTR_POLICY:
@@ -2036,6 +2037,8 @@ _get_key(preference_t pref)
             return "log";
         case PREF_OMEMO_POLICY:
             return "policy";
+        case PREF_CORRECTION_ALLOW:
+            return "correction.allow";
         default:
             return NULL;
     }
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 2a30f655..4c903272 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -161,6 +161,7 @@ typedef enum {
     PREF_OMEMO_LOG,
     PREF_OMEMO_POLICY,
     PREF_OCCUPANTS_WRAP,
+    PREF_CORRECTION_ALLOW,
 } preference_t;
 
 typedef struct prof_alias_t {