X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fctables.h;h=75795e48ca47c25759c66274db0d58e66564d2e3;hb=4498f1abd163b140efcbbd9e75173665c9b1c29f;hp=badcd1fde80232c3db6ac29d8706ac8e7c8a03be;hpb=cd712c40e1b352c05e7ae0f72e0a5e84cdf64323;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/ctables.h b/include/ctables.h index badcd1fde..75795e48c 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -20,9 +20,13 @@ enum CmdResult { CMD_FAILURE = 0, /* Command exists, but failed */ CMD_SUCCESS = 1, /* Command exists, and succeeded */ - CMD_INVALID = 2 /* Command doesnt exist at all! */ + CMD_INVALID = 2, /* Command doesnt exist at all! */ + CMD_EPERM = 3 /* Command failed because of a permission check */ }; +/** Flag for commands that are only allowed from servers */ +const char FLAG_SERVERONLY = 7; // technically anything nonzero below 'A' works + /** Translation types for translation of parameters to UIDs. * This allows the core commands to not have to be aware of how UIDs * work (making it still possible to write other linking modules which @@ -104,11 +108,11 @@ class CoreExport Command : public ServiceProvider /** used by /stats m */ - long double use_count; + long use_count; /** used by /stats m */ - long double total_bytes; + long total_bytes; /** True if the command is disabled to non-opers */