summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:48:48 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:48:48 +0000
commit24731c63b6320be22f7b3220236271fa7476b975 (patch)
tree615959bfd36dd30bc5c067c4501dbfb8a2e8cb8b /include/command_parse.h
parent79f9faeec84fbcb704b45811b9851148ab1cb20b (diff)
Add Module* creator to Command and ModeHandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h8
1 files changed, 4 insertions, 4 deletions
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<std::string,Command*>::iterator safei, const char* source);
+ void RemoveCommand(nspace::hash_map<std::string,Command*>::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 = "<core-command>"; }
+ CommandReload (InspIRCd* Instance) : Command(Instance,NULL,"RELOAD","o",1) { syntax = "<core-command>"; }
/** Handle RELOAD
*/
CmdResult Handle(const std::vector<std::string>& parameters, User *user);