aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-04 10:17:15 +0000
committerGravatar jesopo2019-02-04 10:17:15 +0000
commit66d2ef2c26c9ee1dcb49c31912dff49d127bc3de (patch)
tree40e47e1a5a1ac9dbf7d1a51930feef593d3d52af /modules/github
parentDelete `automodes` user_channel setting when it's empty (auto_mode.py) (diff)
signature
We don't need to enumerate hooks (github)
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/module.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/github/module.py b/modules/github/module.py
index 6e413617..b9269b1a 100644
--- a/modules/github/module.py
+++ b/modules/github/module.py
@@ -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]