diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/chat-commands.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/chat-commands.c b/src/core/chat-commands.c index 58b83f7c..f2cae1ab 100644 --- a/src/core/chat-commands.c +++ b/src/core/chat-commands.c @@ -46,6 +46,9 @@ static void cmd_join(const char *data, SERVER_REC *server) if (g_hash_table_lookup(optlist, "invite")) channels = server->last_invite; else { + if (*channels == '\0') + cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); + /* -<server tag> */ server = cmd_options_get_server("join", optlist, server); } |