You can't minus a set from a list (auto_mode.py)

This commit is contained in:
jesopo 2019-02-21 21:14:57 +00:00
parent 1da66fb72d
commit 0fc2dd8754

View file

@ -15,7 +15,7 @@ class Module(ModuleManager.BaseModule):
modes = self._get_modes(channel, user) modes = self._get_modes(channel, user)
if modes: if modes:
current_modes = channel.get_user_status(user) 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), channel.send_mode("+%s" % "".join(new_modes),
[user.nickname for mode in new_modes]) [user.nickname for mode in new_modes])