diff options
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/github.py b/modules/github.py index 7b4a48e6..4f893c5e 100644 --- a/modules/github.py +++ b/modules/github.py @@ -126,14 +126,16 @@ class Module(ModuleManager.BaseModule): github_event = event["headers"]["X-GitHub-Event"] full_name = None + repo_username = None + repo_name = None if "respository" in data: full_name = data["repository"]["full_name"] + repo_username, repo_name = full_name.split("/", 1) organisation = None if "organization" in data: organisation = data["organization"]["login"] - repo_username, repo_name = full_name.split("/", 1) hooks = self.bot.database.channel_settings.find_by_setting( "github-hook") targets = [] |
