]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
Remove spanningtree override of /LUSERS
[user/henk/code/inspircd.git] / include / command_parse.h
index 10dbef58d6106072afd63983c91189bd835f716a..814cdb27aa9879e606b3039638c586bf2aed8bc7 100644 (file)
@@ -23,7 +23,7 @@ typedef std::map<std::string, void*> SharedObjectList;
  * call command handlers by name, and chop up comma seperated
  * parameters into multiple calls.
  */
-class CoreExport CommandParser : public classbase
+class CoreExport CommandParser
 {
  private:
        /** Parameter buffer
@@ -43,10 +43,6 @@ class CoreExport CommandParser : public classbase
         */
        bool ProcessCommand(User *user, std::string &cmd);
 
-       /** 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, Module* source);
 
 
  public:
@@ -145,16 +141,15 @@ class CoreExport CommandParser : public classbase
         */
        void DoLines(User* current, bool one_only = false);
 
-       /** Remove all commands relating to module 'source'.
-        * @param source A module which has introduced new commands
-        */
-       void RemoveCommands(Module* source);
-
        /** Add a new command to the commands hash
         * @param f The new Command to add to the list
         * @return True if the command was added
         */
-       bool CreateCommand(Command *f);
+       bool AddCommand(Command *f);
+
+       /** Removes a command.
+        */
+       void RemoveCommand(Command* x);
 
        /** Translate nicknames in a string into UIDs, based on the TranslationType given.
         * @param to The translation type to use for the process.