From 83c0022c4d3333f650a8ee9dd9576432f184bfd7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 5 Sep 2018 15:39:29 +0100 Subject: [PATCH] Support account-tag in permissions.py --- modules/permissions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = []