diff options
| author | 2019-06-26 10:59:52 +0100 | |
|---|---|---|
| committer | 2019-06-26 10:59:52 +0100 | |
| commit | 29b15da17950c5e730a142d68eeba46a6aeeac8b (patch) | |
| tree | a6d44ac067f6a383ab09e2fb360bdbcedb89a7de /modules/permissions | |
| parent | dont use "|" multi-event syntax. it's weird (diff) | |
| signature | ||
Switch all 'hook.kwargs.get(' calls to 'hook.get_kwarg('
Diffstat (limited to 'modules/permissions')
| -rw-r--r-- | modules/permissions/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/permissions/__init__.py b/modules/permissions/__init__.py index 269f2a0f..6003c256 100644 --- a/modules/permissions/__init__.py +++ b/modules/permissions/__init__.py @@ -230,7 +230,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("preprocess.command") def preprocess_command(self, event): permission = event["hook"].get_kwarg("permission", None) - authenticated = event["hook"].kwargs.get("authenticated", False) + authenticated = event["hook"].get_kwarg("authenticated", False) return self._check_command(event, permission, authenticated) @utils.hook("check.command.permission") |
