use Utils.irc_lower, not .lower()

This commit is contained in:
jesopo 2018-10-02 15:14:06 +01:00
parent 150788c6c6
commit c7e4ae6e12

View file

@ -27,7 +27,8 @@ class Module(ModuleManager.BaseModule):
if not event["user"].last_karma or (time.time()-event["user"
].last_karma) >= KARMA_DELAY_SECONDS:
target = match.group(1).strip()
if target == event["user"].name:
if Utils.irc_lower(event["server"], target
) == event["user"].name:
if verbose:
self.events.on("send.stderr").call(
module_name="Karma", target=event["channel"],