X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommand_parse.h;h=5750416db1806208e408af97170db3935dd713ed;hb=3ec7995bf4981119115d14ce2cfce0cb5795f803;hp=98e189f9ace9aa1ad9184e1ef73f842116273d3b;hpb=696ee9ff66bb94be2229bfa9c3dc288affc38a72;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/command_parse.h b/include/command_parse.h index 98e189f9a..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::iterator safei, const char* source); + + public: /** Command list, a hash_map of command names to command_t* */