From fbe38dd2c8d79e4987ddfb3c0c57566a9f963457 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 16 Jul 2001 20:23:59 +0000 Subject: [PATCH] command_runsub() - ignore multiple spaces between /COMMAND SUBCOMMAND git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1640 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/commands.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/commands.c b/src/core/commands.c index 08f1c1b9..0cbb70b0 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -283,6 +283,8 @@ void command_runsub(const char *cmd, const char *data, g_return_if_fail(data != NULL); + while (*data == ' ') data++; + if (*data == '\0') { /* no subcommand given - list the subcommands */ signal_emit("list subcommands", 2, cmd);