diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-11 12:05:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-11 12:05:31 +0000 |
commit | 9595db021dbfc77f0b0bd81ddc01b2578435aa22 (patch) | |
tree | 17aa8a4c5eb434a4a34971e65f41deb15396c8e9 /include/command_parse.h | |
parent | 0f4caa76984ab4f15f8e69b4a396eb38f3a7fd4d (diff) |
Allow rehash to attempt to load missing (and new) lib/cmd_*.so files, to allow users to fix an emergency situation you can create by trying to reload a corrupt .so without needing a restart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7712 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r-- | include/command_parse.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index 58f63a802..2c3605613 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -56,10 +56,6 @@ class CoreExport CommandParser : public classbase */ void ProcessCommand(userrec *user, std::string &cmd); - /** Insert the default RFC1459 commands into the command hash. - */ - void SetupCommandTable(); - /** Finds the init_command symbol in a .so file * @param v A function pointer to be initialized * @param h A valid shared object handle @@ -198,6 +194,13 @@ class CoreExport CommandParser : public classbase * @return True if the command was added */ bool CreateCommand(command_t *f, void* so_handle = NULL); + + /** Insert the default RFC1459 commands into the command hash. + * Ignore any already loaded commands. + * @param user User to spool errors to, or if NULL, when an error occurs spool the errors to + * stdout then exit with EXIT_STATUS_HANDLER. + */ + void SetupCommandTable(userrec* user); }; /** Command handler class for the RELOAD command. |