From e2d60a541c9398d293767befcff2d6b1300598a5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 4 Feb 2019 10:17:27 +0000 Subject: [PATCH] Try to match against full repository name first, so that we can make specific rules for specific repositories (github) --- modules/github/module.py | 6 +++--- 1 file 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]