diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-07 13:53:58 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-07 13:53:58 +0000 |
commit | e46e2b5e0939a39059258e7302401775203063f1 (patch) | |
tree | 26fcc093c927fd832b483e35c9a78b951bb1ae69 /src/core | |
parent | 6a7c1d212aae6d846a72d6bceb8eb85115b42fe4 (diff) | |
download | irssi-e46e2b5e0939a39059258e7302401775203063f1.zip |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/commands.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |