summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-03 14:37:42 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-03 14:37:42 +0200
commitfb82075a2e69514f23bad84643f903384c6d11e8 (patch)
tree70aa8aaf3711da98b68ed6134c433341fa39155f /include/mode.h
parent8003e37f81e26fde4a3855cdfe6917eb74a2c264 (diff)
Add mode process flag MODE_CHECKACCESS
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/mode.h b/include/mode.h
index 3877e0d3b..3d8f0c940 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -601,7 +601,15 @@ class CoreExport ModeParser : public fakederef<ModeParser>
* and not send it to other servers. The mode change will be processed
* locally and sent to local user(s) as usual.
*/
- MODE_LOCALONLY = 2
+ MODE_LOCALONLY = 2,
+
+ /** If this flag is set then the mode change will be subject to access checks.
+ * For more information see the documentation of the PrefixMode class,
+ * ModeHandler::levelrequired and ModeHandler::AccessCheck().
+ * Modules may explicitly allow a mode change regardless of this flag by returning
+ * MOD_RES_ALLOW from the OnPreMode hook. Only affects channel mode changes.
+ */
+ MODE_CHECKACCESS = 4
};
ModeParser();