summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-17 02:58:57 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-17 02:58:57 +0000
commit3c14fd2155725038ddd97beefee6c47742f6be82 (patch)
tree0020bf8fd9e18eb4bec2156914e08786f356a610 /include/command_parse.h
parent3712db9cc6365e556a803daf32416ae929e95330 (diff)
Make RemoveCommand private.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6030 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index b9e57035d..5750416db 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -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*
*/
@@ -175,8 +181,6 @@ class CommandParser : public classbase
*/
bool RemoveCommands(const char* source);
- void RemoveCommand(nspace::hash_map<std::string,command_t*>::iterator safei, const char* source);
-
/** Add a new command to the commands hash
* @param f The new command_t to add to the list
* @param so_handle The handle to the shared object where the command can be found.