From a35cbea73273fb7e61218155ca1c28ebab73bb5b Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 17 Oct 2015 22:30:01 +0100 Subject: [PATCH] Implemented /script list --- src/command/command.c | 7 ++----- src/command/commands.c | 4 ++++ src/config/scripts.c | 26 ++++++++++++++++++++++++++ src/config/scripts.h | 1 + src/ui/console.c | 18 ++++++++++++++++++ src/ui/ui.h | 1 + tests/unittests/ui/stub_ui.c | 1 + 7 files changed, 53 insertions(+), 5 deletions(-) diff --git a/src/command/command.c b/src/command/command.c index 8b43ad21..35c2e32a 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1693,19 +1693,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