aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-04 10:17:27 +0000
committerGravatar jesopo2019-02-04 10:17:27 +0000
commite2d60a541c9398d293767befcff2d6b1300598a5 (patch)
tree035bd149da02a509350b4cd06fd28d6dda9630fb /modules/github
parentWe don't need to enumerate hooks (github) (diff)
signature
Try to match against full repository name first, so that we can make specific
rules for specific repositories (github)
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/module.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/github/module.py b/modules/github/module.py
index b9269b1a..94814364 100644
--- a/modules/github/module.py
+++ b/modules/github/module.py
@@ -263,10 +263,10 @@ class Module(ModuleManager.BaseModule):
repo_hooked = False
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]
- elif full_name and full_name in hooked_repos:
+ if full_name and full_name in hooked_repos:
found_hook = hooked_repos[full_name]
+ elif repo_username and repo_username in hooked_repos:
+ found_hook = hooked_repos[repo_username]
elif organisation and organisation in hooked_repos:
found_hook = hooked_repos[organisation]