Skip to content

Commit

Permalink
better wording for karma, now that it's per-user
Browse files Browse the repository at this point in the history
  • Loading branch information
jesopo committed Dec 1, 2019
1 parent e96173d commit dde10c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/karma.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def _change_karma(self, server, sender, target, positive):

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)
Expand Down Expand Up @@ -110,7 +112,6 @@ def karma(self, event):
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")
Expand Down

0 comments on commit dde10c1

Please sign in to comment.