about summary refs log tree commit diff stats
path: root/src/ui/console.c
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/ui/console.c
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/ui/console.c')
-rw-r--r--src/ui/console.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 57a04290..f7fa448d 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2024,7 +2024,14 @@ cons_os_setting(void)
 void
 cons_correction_setting(void)
 {
-    cons_show("TODO");
+    if (prefs_get_boolean(PREF_CORRECTION_ALLOW)) {
+        cons_show("Last Message Correction (XEP-0308) (/correction)                   : ON");
+    } else {
+        cons_show("Last Message Correction (XEP-0308) (/correction)                   : OFF");
+    }
+
+    char cc = prefs_get_correction_char();
+    cons_show("LMC indication char (/correction char)                             : %c", cc);
 }
 
 void