Fix event variable name collision (github)

This commit is contained in:
jesopo 2019-03-01 21:47:00 +00:00
parent 88a28352b8
commit 293b3a8ce3

View file

@ -320,9 +320,9 @@ class Module(ModuleManager.BaseModule):
continue continue
github_events = [] github_events = []
for event in found_hook["events"]: for hooked_event in found_hook["events"]:
github_events.append(EVENT_CATEGORIES.get( github_events.append(EVENT_CATEGORIES.get(
event, [event])) hooked_event, [hooked_event]))
github_events = list(itertools.chain(*github_events)) github_events = list(itertools.chain(*github_events))
channel = server.channels.get(channel_name) channel = server.channels.get(channel_name)