diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 23f5c749..dbb86b39 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1806,6 +1806,14 @@ _cmd_ac_complete_params(ProfWin* window, const char* const input, gboolean previ return result; } + gchar* history_jid_subcmds[] = { "/history verify", "/history export", "/history import" }; + for (int i = 0; i < ARRAY_SIZE(history_jid_subcmds); i++) { + result = autocomplete_param_with_func(input, history_jid_subcmds[i], roster_barejid_autocomplete, previous, NULL); + if (result) { + return result; + } + } + result = autocomplete_param_with_ac(input, "/history", history_ac, TRUE, previous); if (result) { return result;