+ {
+ /* Return CMD_SUCCESS so the module will be unloaded on any servers it is loaded on - this is a seperate case entirely from loading -Special */
+ user->WriteServ("972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ServerInstance->ModuleError());
+ }
+ return CMD_SUCCESS;
+ }
+};
+
+/** Handle /GRELOADMODULE
+ */
+class cmd_greloadmodule : public command_t
+{
+ public:
+ cmd_greloadmodule (InspIRCd* Instance) : command_t(Instance, "GRELOADMODULE", 'o', 1)
+ {
+ this->source = "m_globalload.so";
+ syntax = "<modulename>";
+ }
+
+ CmdResult Handle(const char** parameters, int pcnt, userrec *user)
+ {
+ if (!ServerInstance->UnloadModule(parameters[0]))