mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
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:
parent
6a7c1d212a
commit
e46e2b5e09
2 changed files with 44 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue