diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-17 02:46:47 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-17 02:46:47 +0000 |
commit | 3712db9cc6365e556a803daf32416ae929e95330 (patch) | |
tree | 56d0b9739b925519608bf119867c73968d7b1cbe /include/command_parse.h | |
parent | 0632c7946c9835f24049b8cf9130409206796b33 (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.h | 2 |
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. |