]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
Space indents must die.
[user/henk/code/inspircd.git] / include / command_parse.h
index 98e189f9ace9aa1ad9184e1ef73f842116273d3b..2ffb30ee6e52ec50cc34c4ca8db1941fa4566435 100644 (file)
@@ -28,7 +28,7 @@ typedef std::map<std::string, void*> SharedObjectList;
  * call command handlers by name, and chop up comma seperated
  * parameters into multiple calls.
  */
-class CommandParser : public classbase
+class CoreExport CommandParser : public classbase
 {
  private:
        /** The creator of this class
@@ -72,6 +72,12 @@ class CommandParser : public classbase
         */
        void LoadCommand(const char* name);
 
+       /** 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_t*>::iterator safei, const char* source);
+
+
  public:
        /** Command list, a hash_map of command names to command_t*
         */