From 2f4475a70f0153312799f52d55b7275f54dc1563 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 22 Jun 2019 22:42:52 +0100 Subject: [PATCH] colorise ref for `delete` event, same as for `create` event --- modules/github/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 3dee37d5..46106a91 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -688,9 +688,10 @@ class Module(ModuleManager.BaseModule): def delete(self, full_name, data): ref = data["ref"] + ref_color = utils.irc.color(ref, COLOR_BRANCH) type = data["ref_type"] sender = utils.irc.bold(data["sender"]["login"]) - return ["%s deleted a %s: %s" % (sender, type, ref)] + return ["%s deleted a %s: %s" % (sender, type, ref_color)] def release(self, full_name, data): action = data["action"]