make karmawho case insensitive

This commit is contained in:
David Schultz 2021-01-11 11:12:46 -06:00 committed by GitHub
parent b046c36052
commit 1fe8cb677e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.command.karmawho")
@utils.spec("!<target>string")
def karmawho(self, event):
target = event["spec"][0]
target = event["server"].irc_lower(event["spec"][0])
karma = self._get_karma(event["server"], target, True)
karma = sorted(list(karma.items()),
key=lambda k: abs(k[1]),