summaryrefslogtreecommitdiff
path: root/src/core/commands.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-07-16 20:23:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-07-16 20:23:59 +0000
commitfbe38dd2c8d79e4987ddfb3c0c57566a9f963457 (patch)
tree25973570b2850eed3c3d8008d63b0842e768d58e /src/core/commands.c
parent69a6096b8b4e0b94e3ba327801a120be2d446636 (diff)
downloadirssi-fbe38dd2c8d79e4987ddfb3c0c57566a9f963457.zip
command_runsub() - ignore multiple spaces between /COMMAND SUBCOMMAND
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1640 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/commands.c')
-rw-r--r--src/core/commands.c2
1 files changed, 2 insertions, 0 deletions
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);