From 3712db9cc6365e556a803daf32416ae929e95330 Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 17 Dec 2006 02:46:47 +0000 Subject: Invented safe delete-while-itering for hash_map. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6029 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/command_parse.h') 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::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. -- cgit v1.2.3