summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-17 02:46:47 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-17 02:46:47 +0000
commit3712db9cc6365e556a803daf32416ae929e95330 (patch)
tree56d0b9739b925519608bf119867c73968d7b1cbe /include/command_parse.h
parent0632c7946c9835f24049b8cf9130409206796b33 (diff)
Invented safe delete-while-itering for hash_map.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6029 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 98e189f9a..b9e57035d 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -175,6 +175,8 @@ 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.