diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_funcs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index e9e266c1..a6c0011f 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -7818,6 +7818,11 @@ cmd_command_exec(ProfWin *window, const char *const command, gchar **args) return TRUE; } + if (args[1] == NULL) { + cons_bad_cmd_usage(command); + return TRUE; + } + char *jid = args[2]; if (jid == NULL) { switch (window->type) { |