diff options
Diffstat (limited to 'src/cmd_unloadmodule.cpp')
-rw-r--r-- | src/cmd_unloadmodule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_unloadmodule.cpp b/src/cmd_unloadmodule.cpp index 1bb99014b..ba8e1f99d 100644 --- a/src/cmd_unloadmodule.cpp +++ b/src/cmd_unloadmodule.cpp @@ -25,7 +25,7 @@ extern "C" command_t* init_command(InspIRCd* Instance) return new cmd_unloadmodule(Instance); } -void cmd_unloadmodule::Handle (const char** parameters, int pcnt, userrec *user) +CmdResult cmd_unloadmodule::Handle (const char** parameters, int pcnt, userrec *user) { if (ServerInstance->UnloadModule(parameters[0])) { @@ -35,5 +35,8 @@ void cmd_unloadmodule::Handle (const char** parameters, int pcnt, userrec *user) else { user->WriteServ("972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ServerInstance->ModuleError()); + return CMD_FAILURE; } + + return CMD_SUCCESS; } |