make karmawho case insensitive
This commit is contained in:
parent
b046c36052
commit
1fe8cb677e
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("received.command.karmawho")
|
@utils.hook("received.command.karmawho")
|
||||||
@utils.spec("!<target>string")
|
@utils.spec("!<target>string")
|
||||||
def karmawho(self, event):
|
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 = self._get_karma(event["server"], target, True)
|
||||||
karma = sorted(list(karma.items()),
|
karma = sorted(list(karma.items()),
|
||||||
key=lambda k: abs(k[1]),
|
key=lambda k: abs(k[1]),
|
||||||
|
|
Loading…
Reference in a new issue