Fix py3 problem in accessbot.py

Change-Id: I4e3b3683b33b600cc4c1e4f09ba02c59e6f5cbb9
Fix:
TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'
This commit is contained in:
Andreas Jaeger 2020-05-02 22:11:21 +02:00
parent 26f1dae81b
commit 90fa9170dd

View File

@ -106,8 +106,8 @@ class SetAccess(irc.client.SimpleIRCClient):
if channel is None:
raise Exception("Unknown channel %s" % (channel_name,))
mask = ''
for access, nicks in (self.config['global'].items() +
channel.items()):
for access, nicks in (list(self.config['global'].items()) +
list(channel.items())):
if access == 'mask':
mask = self.config['access'].get(nicks)
continue