When using a /command that has only subcommands, print the list of the

subcommands instead of just "unknown command" text.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1093 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-07 13:53:58 +00:00 committed by cras
commit e46e2b5e09
2 changed files with 44 additions and 10 deletions

View file

@ -282,9 +282,8 @@ void command_runsub(const char *cmd, const char *data,
g_return_if_fail(data != NULL);
if (*data == '\0') {
/* no subcommand given - unknown command? */
signal_emit("error command", 2,
GINT_TO_POINTER(CMDERR_UNKNOWN), cmd);
/* no subcommand given - list the subcommands */
signal_emit("list subcommands", 2, cmd);
return;
}