From 0fc2dd8754207036a01073183ed8854be430e8dd Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 21 Feb 2019 21:14:57 +0000 Subject: [PATCH] You can't minus a set from a list (auto_mode.py) --- modules/auto_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auto_mode.py b/modules/auto_mode.py index c6810a6d..c8c5d173 100644 --- a/modules/auto_mode.py +++ b/modules/auto_mode.py @@ -15,7 +15,7 @@ class Module(ModuleManager.BaseModule): modes = self._get_modes(channel, user) if modes: current_modes = channel.get_user_status(user) - new_modes = modes-current_modes + new_modes = set(modes)-current_modes channel.send_mode("+%s" % "".join(new_modes), [user.nickname for mode in new_modes])