allow relaying channels on the same server
This commit is contained in:
parent
9eacdee086
commit
65c7279ce0
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
server = self.bot.get_server_by_id(server_id)
|
server = self.bot.get_server_by_id(server_id)
|
||||||
if server and channel_name in server.channels:
|
if server and channel_name in server.channels:
|
||||||
relay_channel = server.channels.get(channel_name)
|
relay_channel = server.channels.get(channel_name)
|
||||||
if (not server.id == event["server"].id and
|
if not channel.id == relay_channel.id:
|
||||||
not channel.id == relay_channel.id):
|
|
||||||
if not server in relays:
|
if not server in relays:
|
||||||
relays[server] = []
|
relays[server] = []
|
||||||
if not relay_channel in relays[server]:
|
if not relay_channel in relays[server]:
|
||||||
|
|
Loading…
Reference in a new issue