mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 16:16:20 +00:00
Added /room ban command
This commit is contained in:
@@ -1252,6 +1252,7 @@ cmd_init(void)
|
||||
autocomplete_add(room_ac, "info");
|
||||
autocomplete_add(room_ac, "subject");
|
||||
autocomplete_add(room_ac, "kick");
|
||||
autocomplete_add(room_ac, "ban");
|
||||
autocomplete_add(room_ac, "role");
|
||||
autocomplete_add(room_ac, "affiliation");
|
||||
|
||||
@@ -2355,6 +2356,13 @@ _room_autocomplete(char *input, int *size)
|
||||
}
|
||||
}
|
||||
|
||||
if (jid_ac != NULL) {
|
||||
result = autocomplete_param_with_ac(input, size, "/room ban", jid_ac, TRUE);
|
||||
if (result != NULL) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
result = autocomplete_param_with_ac(input, size, "/room", room_ac, TRUE);
|
||||
if (result != NULL) {
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user