diff options
| author | 2020-03-08 14:14:00 +0000 | |
|---|---|---|
| committer | 2020-03-08 14:14:00 +0000 | |
| commit | 49d9cbdb87a40cf58f1997914ca1b5033fcc13b3 (patch) | |
| tree | f89b4b6d5acc0ec88f6e8b5e7445454c04797d93 /src/core_modules | |
| parent | add space between command and usage string (diff) | |
| signature | ||
exports.get_one() -> exports.get()
Diffstat (limited to 'src/core_modules')
| -rw-r--r-- | src/core_modules/channel_access.py | 2 | ||||
| -rw-r--r-- | src/core_modules/command_spec/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core_modules/channel_access.py b/src/core_modules/channel_access.py index 662599e0..a8c371a8 100644 --- a/src/core_modules/channel_access.py +++ b/src/core_modules/channel_access.py @@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule): user_access = target.get_user_setting(user.get_id(), "access", []) - identified = self.exports.get_one("is-identified")(user) + identified = self.exports.get("is-identified")(user) matched = list(set(required_access)&set(user_access)) return ("*" in user_access or matched) and identified diff --git a/src/core_modules/command_spec/__init__.py b/src/core_modules/command_spec/__init__.py index 6a4fd3d8..6345d342 100644 --- a/src/core_modules/command_spec/__init__.py +++ b/src/core_modules/command_spec/__init__.py @@ -48,7 +48,7 @@ class Module(ModuleManager.BaseModule): if argument_type.type in types.TYPES: func = types.TYPES[argument_type.type] else: - func = self.exports.get_one( + func = self.exports.get( "command-spec.%s" % argument_type.type) if func: |
