From 47d38c7d185856fd81fddf94883009bbaf749e3c Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 20 Sep 2019 14:52:41 +0100 Subject: refactor all checks for channel_type to server.is_channel() --- modules/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/config.py') diff --git a/modules/config.py b/modules/config.py index 27161cca..ce325724 100644 --- a/modules/config.py +++ b/modules/config.py @@ -53,7 +53,7 @@ class Module(ModuleManager.BaseModule): else: #we're in a channel return channel, "channelset", None - if context_desc_lower[0] in server.channel_types: + elif server.is_channel(context_desc): return context_desc, "channelset", context_desc elif server.irc_lower(context_desc) == user.nickname_lower: return user, "set", None -- cgit v1.3.1-10-gc9f91