aboutsummaryrefslogtreecommitdiffstats
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 597aa982a..f072cdbb9 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -502,6 +502,9 @@ bool CommandParser::ReloadCommand(const char* cmd, userrec* user)
CmdResult cmd_reload::Handle(const char** parameters, int pcnt, userrec *user)
{
+ if (pcnt < 1)
+ return CMD_FAILURE;
+
user->WriteServ("NOTICE %s :*** Reloading command '%s'",user->nick, parameters[0]);
if (ServerInstance->Parser->ReloadCommand(parameters[0], user))
{