1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

command_runsub() - ignore multiple spaces between /COMMAND SUBCOMMAND

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1640 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-07-16 20:23:59 +00:00 committed by cras
parent 69a6096b8b
commit fbe38dd2c8

View File

@ -283,6 +283,8 @@ void command_runsub(const char *cmd, const char *data,
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
while (*data == ' ') data++;
if (*data == '\0') { if (*data == '\0') {
/* no subcommand given - list the subcommands */ /* no subcommand given - list the subcommands */
signal_emit("list subcommands", 2, cmd); signal_emit("list subcommands", 2, cmd);