Try to match against full repository name first, so that we can make specific

rules for specific repositories (github)
This commit is contained in:
jesopo 2019-02-04 10:17:27 +00:00
parent 66d2ef2c26
commit e2d60a541c

View file

@ -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]