From e46e2b5e0939a39059258e7302401775203063f1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 7 Jan 2001 13:53:58 +0000 Subject: 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 --- src/core/commands.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/commands.c b/src/core/commands.c index 200dc3d0..614358b8 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -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; } -- cgit v1.2.3