summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-06 17:21:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-06 17:21:59 +0000
commit4cf0ae1308fe98757de42ffbe391e61844ac9e0a (patch)
tree76cf38a7afd4d31b6345561442bdee4692c5a847 /include/ctables.h
parent29f296665d0625883d13d2c979cba702c952f5ec (diff)
Command result codes. This isnt finished yet, still got to do most of the modules, and alter CallCommandHandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5149 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/ctables.h b/include/ctables.h
index 870efadac..9adf6c37c 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -25,7 +25,14 @@
class userrec;
class InspIRCd;
-/*typedef void (handlerfunc) (char**, int, userrec*);*/
+/** Used to indicate command success codes
+ */
+enum CmdResult
+{
+ CMD_FAILURE = 0, /* Command exists, but failed */
+ CMD_SUCCESS = 1, /* Command exists, and succeeded */
+ CMD_INVALID = 2, /* Command doesnt exist at all! */
+};
/** A structure that defines a command
*/
@@ -70,7 +77,7 @@ class command_t : public Extensible
syntax = "";
}
- virtual void Handle(const char** parameters, int pcnt, userrec* user) = 0;
+ virtual CmdResult Handle(const char** parameters, int pcnt, userrec* user) = 0;
void Disable(bool setting)
{