about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-12-10 00:28:08 +0000
committerJames Booth <boothj5@gmail.com>2012-12-10 00:28:08 +0000
commit210da7b137c95bc7544f29ff45b1d5a6628eceb6 (patch)
tree731de253e484675b0e24fe590800683f933958a3 /src/command.c
parent8415f57b3293742547f07323fbefdd278bdcb24d (diff)
downloadprofani-tty-210da7b137c95bc7544f29ff45b1d5a6628eceb6.tar.gz
Added account name autocomplete for /account set
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 600a5065..6927bfa5 100644
--- a/src/command.c
+++ b/src/command.c
@@ -2219,7 +2219,9 @@ _theme_autocomplete(char *input, int *size)
 static void
 _account_autocomplete(char *input, int *size)
 {
-    if ((strncmp(input, "/account show ", 14) == 0) && (*size > 14)) {
+    if ((strncmp(input, "/account set ", 13) == 0) && (*size > 13)) {
+        _parameter_autocomplete(input, size, "/account set", accounts_find_login);
+    } else if ((strncmp(input, "/account show ", 14) == 0) && (*size > 14)) {
         _parameter_autocomplete(input, size, "/account show", accounts_find_login);
     } else if ((strncmp(input, "/account enable ", 16) == 0) && (*size > 16)) {
         _parameter_autocomplete(input, size, "/account enable", accounts_find_login);