about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-06-02 00:11:09 +0100
committerJames Booth <boothj5@gmail.com>2013-06-02 00:11:09 +0100
commitcf8d00185b7908607d1bee56a17bf7500d939326 (patch)
tree7b9fb9bf2f55c382196d6d8e8d1e617e7d4b584b
parent01bdc6ae5ac83331ac76beb71cdd0f11e5bb58ca (diff)
downloadprofani-tty-cf8d00185b7908607d1bee56a17bf7500d939326.tar.gz
Added autocomplete for /roster remove
-rw-r--r--src/command/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 89751fa3..00ab1b2c 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -3351,6 +3351,8 @@ _roster_autocomplete(char *input, int *size)
 {
     if ((strncmp(input, "/roster nick ", 13) == 0) && (*size > 13)) {
         _parameter_autocomplete(input, size, "/roster nick", roster_find_jid);
+    } else if ((strncmp(input, "/roster remove ", 15) == 0) && (*size > 15)) {
+        _parameter_autocomplete(input, size, "/roster remove", roster_find_jid);
     } else if ((strncmp(input, "/roster ", 8) == 0) && (*size > 8)) {
         _parameter_autocomplete_with_ac(input, size, "/roster", roster_ac);
     }