summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-11 11:29:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-11 11:29:15 +0000
commit8683e1c80d9d37ee7ffae54c0d888195a5e8d1a7 (patch)
tree4300f56266760c63163dfcac992cb017a94754e5 /include/command_parse.h
parent0d59b84eb106499f58067e46c321d8b1de09b778 (diff)
Provide error output on failure to load a core command; to console on startup, and to user on /reload
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7708 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index e8240fcf9..58f63a802 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -73,8 +73,9 @@ class CoreExport CommandParser : public classbase
/** Load a command from a shared object on disk.
* @param name The shared object to load (without path)
+ * @return NULL on success, pointer to dlerrr() error message on failure
*/
- void LoadCommand(const char* name);
+ const char* 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).
@@ -95,7 +96,7 @@ class CoreExport CommandParser : public classbase
* @return True if the command was reloaded, false if it could not be found
* or another error occured
*/
- bool ReloadCommand(const char* cmd);
+ bool ReloadCommand(const char* cmd, userrec* user);
/** Default constructor.
* @param Instance The creator of this class