about summary refs log tree commit diff stats
path: root/src/command/cmd_ac.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-03-18 18:20:05 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-03-18 18:20:05 +0100
commit3c56b289ed04f8525affd532d0192d653e1dcd95 (patch)
treeafb0b55eea620a1d8f4968a67756f88a00c3b25d /src/command/cmd_ac.c
parented97e3730a846dd17d6350cbe6cce25e419f83e4 (diff)
downloadprofani-tty-3c56b289ed04f8525affd532d0192d653e1dcd95.tar.gz
Add slashguard feature
New command `/slashguard` tries to protect against typing ` /quit` by
not allowing a slash in the first 4 characters.
Diffstat (limited to 'src/command/cmd_ac.c')
-rw-r--r--src/command/cmd_ac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index 12331bfb..0266d8f5 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -1567,7 +1567,7 @@ _cmd_ac_complete_params(ProfWin *window, const char *const input, gboolean previ
 
     // autocomplete boolean settings
     gchar *boolean_choices[] = { "/beep", "/intype", "/states", "/outtype", "/flash", "/splash",
-        "/history", "/vercheck", "/privileges", "/wrap", "/carbons", "/lastactivity", "/os"};
+        "/history", "/vercheck", "/privileges", "/wrap", "/carbons", "/lastactivity", "/os", "/slashguard"};
 
     for (i = 0; i < ARRAY_SIZE(boolean_choices); i++) {
         result = autocomplete_param_with_func(input, boolean_choices[i], prefs_autocomplete_boolean_choice, previous, NULL);