From dbdf13b51abe725b37c58b8fb87b2d58b64663af Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 9 Aug 2018 17:49:31 -0400 Subject: Ignore trailing space on slash commands --- input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input.c b/input.c index 64102e2..c342a78 100644 --- a/input.c +++ b/input.c @@ -109,6 +109,7 @@ void input(char *input) { return; } char *command = strsep(&input, " "); + if (input && !input[0]) input = NULL; for (size_t i = 0; i < COMMANDS_LEN; ++i) { if (strcasecmp(command, COMMANDS[i].command)) continue; COMMANDS[i].handler(input); -- cgit 1.4.1-2-gfad0