allow relaying channels on the same server

This commit is contained in:
jesopo 2019-10-28 13:55:50 +00:00
parent 9eacdee086
commit 65c7279ce0

View file

@ -27,8 +27,7 @@ class Module(ModuleManager.BaseModule):
server = self.bot.get_server_by_id(server_id)
if server and channel_name in server.channels:
relay_channel = server.channels.get(channel_name)
if (not server.id == event["server"].id and
not channel.id == relay_channel.id):
if not channel.id == relay_channel.id:
if not server in relays:
relays[server] = []
if not relay_channel in relays[server]: