diff options
| author | 2008-05-04 19:36:34 +0000 | |
|---|---|---|
| committer | 2008-05-04 19:36:34 +0000 | |
| commit | aa561b29799d8110a9f0bbb6fe013abcc40c4d1c (patch) | |
| tree | c8cb4f68ca42605ebf37dfff302a89c033a99c62 /src/command_parse.cpp | |
| parent | Apply updated helpop patch from jackmcbarn (diff) | |
Fix crash if /reload is not given a parameter (oper only command)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9607 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 3 |
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)) { |
