From fa86ba8827c540b7f90a0d22c4d2f8d9bd52a13a Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 20 Dec 2018 21:03:04 +0000 Subject: [PATCH] Always show badge names with the original capitalisation (badges.py) --- modules/badges.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/badges.py b/modules/badges.py index 2d062cc1..27a2c5ca 100644 --- a/modules/badges.py +++ b/modules/badges.py @@ -69,7 +69,7 @@ class Module(ModuleManager.BaseModule): if found_badge: del badges[found_badge] self._set_badges(event["user"], badges) - event["stdout"].write("Removed '%s' badge" % badge) + event["stdout"].write("Removed '%s' badge" % found_badge) else: event["stderr"].write("You have no '%s' badge" % badge) @@ -88,7 +88,7 @@ class Module(ModuleManager.BaseModule): if found_badge: badges[found_badge] = self._format_datetime(self._now()) self._set_badges(event["user"], badges) - event["stdout"].write("Reset badge '%s'" % badge) + event["stdout"].write("Reset badge '%s'" % found_badge) else: event["stderr"].write("You have no '%s' badge" % badge) @@ -120,4 +120,4 @@ class Module(ModuleManager.BaseModule): badges[found_badge] = self._format_datetime(value) self._set_badges(event["user"], badges) - event["stdout"].write("Updated '%s' badge" % badge) + event["stdout"].write("Updated '%s' badge" % found_badge)