diff options
| author | 2018-09-05 15:39:29 +0100 | |
|---|---|---|
| committer | 2018-09-05 15:39:29 +0100 | |
| commit | 83c0022c4d3333f650a8ee9dd9576432f184bfd7 (patch) | |
| tree | 0fc223c610ea601d9031f15ae1ce524e2ed38517 /modules/permissions.py | |
| parent | Handle \x01ACTION that's not correctly terminated with a \x01 (diff) | |
| signature | ||
Support account-tag in permissions.py
Diffstat (limited to 'modules/permissions.py')
| -rw-r--r-- | modules/permissions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/permissions.py b/modules/permissions.py index 5d5f4bb3..1b82a7d9 100644 --- a/modules/permissions.py +++ b/modules/permissions.py @@ -135,7 +135,8 @@ class Module(object): if identity_mechanism == "internal": identified_account = event["user"].identified_account_override elif identity_mechanism == "ircv3-account": - identified_account = event["user"].identified_account + identified_account = (event["user"].identified_account or + event["tags"].get("account", None)) identified_user = None permissions = [] |
