diff --git a/src/command/command.c b/src/command/command.c index 8b43ad21..1b8def1a 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -51,6 +51,7 @@ #include "config/preferences.h" #include "config/theme.h" #include "config/tlscerts.h" +#include "config/scripts.h" #include "contact.h" #include "roster_list.h" #include "jid.h" @@ -108,6 +109,7 @@ static char * _receipts_autocomplete(ProfWin *window, const char * const input); static char * _help_autocomplete(ProfWin *window, const char * const input); static char * _wins_autocomplete(ProfWin *window, const char * const input); static char * _tls_autocomplete(ProfWin *window, const char * const input); +static char * _script_autocomplete(ProfWin *window, const char * const input); GHashTable *commands = NULL; @@ -1693,19 +1695,17 @@ static struct cmd_t command_defs[] = }, { "/script", - cmd_script, parse_args, 2, 2, NULL, + cmd_script, parse_args, 1, 2, NULL, CMD_NOTAGS CMD_SYN( "/script run