From 24731c63b6320be22f7b3220236271fa7476b975 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:48:48 +0000 Subject: Add Module* creator to Command and ModeHandler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/command_parse.h') diff --git a/include/command_parse.h b/include/command_parse.h index 2cf403de1..f176394a7 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -68,7 +68,7 @@ class CoreExport CommandParser : public classbase /** Removes a command if the sources match. Used as a helper for * safe hash_map delete while iter in RemoveCommands(const char* source). */ - void RemoveCommand(nspace::hash_map::iterator safei, const char* source); + void RemoveCommand(nspace::hash_map::iterator safei, Module* source); public: @@ -178,9 +178,9 @@ class CoreExport CommandParser : public classbase void DoLines(User* current, bool one_only = false); /** Remove all commands relating to module 'source'. - * @param source A module name which has introduced new commands + * @param source A module which has introduced new commands */ - void RemoveCommands(const char* source); + void RemoveCommands(Module* source); /** Remove all core commands and unload their shared objects */ @@ -226,7 +226,7 @@ class CommandReload : public Command public: /** Standard constructor */ - CommandReload (InspIRCd* Instance) : Command(Instance,"RELOAD","o",1) { syntax = ""; } + CommandReload (InspIRCd* Instance) : Command(Instance,NULL,"RELOAD","o",1) { syntax = ""; } /** Handle RELOAD */ CmdResult Handle(const std::vector& parameters, User *user); -- cgit v1.2.3