From dde10c11d887585640fcb49b91ef8b65c3ccd4df Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 1 Dec 2019 10:46:07 +0000 Subject: [PATCH] better wording for karma, now that it's per-user --- modules/karma.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/karma.py b/modules/karma.py index 221e39fb..71ac8fe8 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -64,7 +64,9 @@ class Module(ModuleManager.BaseModule): self._set_throttle(sender, positive) karma_str = self._karma_str(karma) - return True, "%s now has %s karma" % (target, karma_str) + + return True, "%s has given %s %s karma" % ( + sender.nickname, target, karma_str) @utils.hook("command.regex", pattern=REGEX_WORD) @utils.hook("command.regex", pattern=REGEX_PARENS) @@ -110,7 +112,6 @@ class Module(ModuleManager.BaseModule): karma = self._karma_str(sum(settings.values())) event["stdout"].write("%s has %s karma" % (target, karma)) - @utils.hook("received.command.resetkarma") @utils.kwarg("min_args", 2) @utils.kwarg("help", "Reset a specific karma to 0")