From 3935bf3a30a409bfae09abfe5bcb99240236ed24 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 22 Nov 2019 11:48:29 +0000 Subject: IRCUser.get_identified_account() doesn't exist anymore --- modules/channel_access.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/channel_access.py') diff --git a/modules/channel_access.py b/modules/channel_access.py index 100b22e0..a7d75ac9 100644 --- a/modules/channel_access.py +++ b/modules/channel_access.py @@ -1,5 +1,6 @@ #--depends-on check_mode #--depends-on commands +#--depends-on permissions from src import ModuleManager, utils @@ -8,7 +9,7 @@ class Module(ModuleManager.BaseModule): def _has_channel_access(self, target, user, require_access): access = target.get_user_setting(user.get_id(), "access", []) - identified_account = user.get_identified_account() + identified = self.exports.get_one("is-identified")(user) return ((require_access in access or "*" in access ) and identified_account) -- cgit v1.3.1-10-gc9f91