summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/command_parse.h5
-rw-r--r--include/exitcodes.h3
2 files changed, 5 insertions, 3 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
diff --git a/include/exitcodes.h b/include/exitcodes.h
index d68301984..e0babb92b 100644
--- a/include/exitcodes.h
+++ b/include/exitcodes.h
@@ -33,7 +33,8 @@ enum ExitStatus
EXIT_STATUS_DIETAG = 12, /* Found a die tag in the config file */
EXIT_STATUS_MODULE = 13, /* Couldn't load a required module */
EXIT_STATUS_CREATEPROCESS = 14, /* CreateProcess failed (windows) */
- EXIT_STATUS_SIGTERM = 15 /* Note: dont move this value. It corresponds with the value of #define SIGTERM. */
+ EXIT_STATUS_SIGTERM = 15, /* Note: dont move this value. It corresponds with the value of #define SIGTERM. */
+ EXIT_STATUS_BADHANDLER = 16 /* Bad command handler loaded */
};
/** Array that maps exit codes (ExitStatus types) to