I forgot that I'd changed how servers keep their list of channels

This commit is contained in:
jesopo 2018-11-17 22:33:31 +00:00
parent dc1a292a75
commit dd47db25f9

View file

@ -48,7 +48,7 @@ class Module(ModuleManager.BaseModule):
enumerate(hooks))[::-1]:
if full_name in hooked_repos:
server = self.bot.get_server(server_id)
if server and server.has_channel(channel_name):
if server and channel_name in server.channels:
channel = server.get_channel(channel_name)
github_events = channel.get_setting("github-events",
DEFAULT_EVENTS)