about summary refs log tree commit diff stats
path: root/src/command/cmd_defs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-10 13:35:46 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-10 13:35:46 +0100
commit039bf5d04de6d388379d5cca300f00b1022d068e (patch)
tree72d1b70b95fe19f42eae44130c4d59bca4dc3a9e /src/command/cmd_defs.c
parentf16d56a15eb521e14d03779c19edfe96dc2e55ac (diff)
downloadprofani-tty-039bf5d04de6d388379d5cca300f00b1022d068e.tar.gz
xep-0308: add `correction` autocompletion
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r--src/command/cmd_defs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index b583a06b..30e11990 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -2361,6 +2361,24 @@ static struct cmd_t command_defs[] =
             { "on|off", ""})
         CMD_NOEXAMPLES
     },
+
+    { "/correction",
+        parse_args, 1, 1, &cons_correction_setting,
+        CMD_NOSUBFUNCS
+        CMD_MAINFUNC(cmd_os)
+        CMD_TAGS(
+            CMD_TAG_CHAT,
+            CMD_TAG_GROUPCHAT)
+        CMD_SYN(
+            "/correction <on>|<off>",
+            "/correction char <char>")
+        CMD_DESC(
+            "Settings regarding Last Message Correction (XEP-0308).")
+        CMD_ARGS(
+            { "on|off", "Enable/Disable support for last message correction."},
+            { "char",    "Set character that will prefix corrected messages. Default: +"})
+        CMD_NOEXAMPLES
+    },
 };
 
 static GHashTable *search_index;