]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Move lots of spanningtree items to commands
[user/henk/code/inspircd.git] / include / ctables.h
index badcd1fde80232c3db6ac29d8706ac8e7c8a03be..9c2a6181c18576d8cbd29808dd9d81a36faff178 100644 (file)
@@ -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