We don't need to enumerate hooks (github)
This commit is contained in:
parent
36e838d585
commit
66d2ef2c26
1 changed files with 1 additions and 2 deletions
|
@ -261,8 +261,7 @@ class Module(ModuleManager.BaseModule):
|
|||
targets = []
|
||||
|
||||
repo_hooked = False
|
||||
for i, (server_id, channel_name, hooked_repos) in list(
|
||||
enumerate(hooks))[::-1]:
|
||||
for server_id, channel_name, hooked_repos) in hooks:
|
||||
found_hook = None
|
||||
if repo_username and repo_username in hooked_repos:
|
||||
found_hook = hooked_repos[repo_username]
|
||||
|
|
Loading…
Reference in a new issue