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
github_events = []
for event in found_hook["events"]:
for hooked_event in found_hook["events"]:
github_events.append(EVENT_CATEGORIES.get(
event, [event]))
hooked_event, [hooked_event]))
github_events = list(itertools.chain(*github_events))
channel = server.channels.get(channel_name)