diff options
| author | 2018-11-19 21:36:24 +0000 | |
|---|---|---|
| committer | 2018-11-19 21:36:24 +0000 | |
| commit | 371d9bd9d62560fdbaea781882c43e71012cc696 (patch) | |
| tree | 1a6a80107b3733eb6208ce029ab37dd3a372627e /modules/github.py | |
| parent | But blue-ification on branch/tag name, not on "branch"/"tag" (diff) | |
| signature | ||
Only color branch name when it's not in the url
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py index d79e9f31..bad397d6 100644 --- a/modules/github.py +++ b/modules/github.py @@ -212,11 +212,12 @@ class Module(ModuleManager.BaseModule): url)] def create(self, event, full_name, data): - ref = utils.irc.color(data["ref"], utils.consts.BLUE) + ref = data["ref"] + ref_color = utils.irc.color(ref, utils.consts.BLUE) type = data["ref_type"] sender = utils.irc.bold(data["sender"]["login"]) url = CREATE_URL % (full_name, ref) - return ["%s created a %s: %s - %s" % (sender, type, ref, url)] + return ["%s created a %s: %s - %s" % (sender, type, ref_color, url)] def delete(self, event, full_name, data): ref = data["ref"] |
