diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 14:37:42 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 14:37:42 +0200 |
commit | fb82075a2e69514f23bad84643f903384c6d11e8 (patch) | |
tree | 70aa8aaf3711da98b68ed6134c433341fa39155f /include | |
parent | 8003e37f81e26fde4a3855cdfe6917eb74a2c264 (diff) |
Add mode process flag MODE_CHECKACCESS
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 10 |
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(); |