better wording for karma, now that it's per-user

This commit is contained in:
jesopo 2019-12-01 10:46:07 +00:00
parent e96173d60c
commit dde10c11d8

View file

@ -64,7 +64,9 @@ class Module(ModuleManager.BaseModule):
self._set_throttle(sender, positive) self._set_throttle(sender, positive)
karma_str = self._karma_str(karma) 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_WORD)
@utils.hook("command.regex", pattern=REGEX_PARENS) @utils.hook("command.regex", pattern=REGEX_PARENS)
@ -110,7 +112,6 @@ class Module(ModuleManager.BaseModule):
karma = self._karma_str(sum(settings.values())) karma = self._karma_str(sum(settings.values()))
event["stdout"].write("%s has %s karma" % (target, karma)) event["stdout"].write("%s has %s karma" % (target, karma))
@utils.hook("received.command.resetkarma") @utils.hook("received.command.resetkarma")
@utils.kwarg("min_args", 2) @utils.kwarg("min_args", 2)
@utils.kwarg("help", "Reset a specific karma to 0") @utils.kwarg("help", "Reset a specific karma to 0")