diff options
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index 1f8977b7..90f168d1 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1251,6 +1251,7 @@ cmd_init(void) autocomplete_add(room_ac, "config"); autocomplete_add(room_ac, "info"); autocomplete_add(room_ac, "subject"); + autocomplete_add(room_ac, "kick"); autocomplete_add(room_ac, "role"); autocomplete_add(room_ac, "affiliation"); @@ -2311,6 +2312,15 @@ _room_autocomplete(char *input, int *size) return result; } + char *recipient = ui_current_recipient(); + Autocomplete nick_ac = muc_roster_ac(recipient); + if (nick_ac != NULL) { + result = autocomplete_param_with_ac(input, size, "/room kick", nick_ac, TRUE); + if (result != NULL) { + return result; + } + } + result = autocomplete_param_with_ac(input, size, "/room", room_ac, TRUE); if (result != NULL) { return result; |