diff options
| author | 2019-05-22 22:31:03 +0100 | |
|---|---|---|
| committer | 2019-05-22 22:31:03 +0100 | |
| commit | 8cc0b84e53d3e1b5e2f2f0bc8fff5a4b44b8b2d4 (patch) | |
| tree | 7258ca127f5ba7f249ef4cd4f8725344f626aea2 /modules/github/__init__.py | |
| parent | LIGHTBLUE tick for verified twitters, not GREEN (diff) | |
| signature | ||
`event.eat()` for command.regex hooks in github module
Diffstat (limited to 'modules/github/__init__.py')
| -rw-r--r-- | modules/github/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 801b9390..46f8be27 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -234,6 +234,7 @@ class Module(ModuleManager.BaseModule): :pattern: https?://github.com/([^/]+)/([^/]+)/(pull|issues)/(\d+) """ if event["target"].get_setting("auto-github", False): + event.eat() ref = "%s/%s#%s" % (event["match"].group(1), event["match"].group(2), event["match"].group(4)) try: @@ -252,6 +253,7 @@ class Module(ModuleManager.BaseModule): :pattern: (?:\S+(?:\/\S+)?)?#\d+ """ if event["target"].get_setting("auto-github", False): + event.eat() try: result = self._get_info(event["target"], event["match"].group(0)) |
