From 144742cb701084cf143b7d996e05e3b3e5449758 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 24 Feb 2022 11:41:53 +0100 Subject: [PATCH] ox: add autocomplete for /ox announce --- src/command/cmd_ac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 81597a2d..6d5c67db 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -2589,6 +2589,10 @@ _ox_autocomplete(ProfWin* window, const char* const input, gboolean previous) return found; } + if (strncmp(input, "/ox announce ", 13) == 0) { + return cmd_ac_complete_filepath(input, "/ox announce", previous); + } + gboolean result; gchar** args = parse_args(input, 2, 3, &result); if ((strncmp(input, "/ox", 4) == 0) && (result == TRUE)) {