use Utils.irc_lower, not .lower()
This commit is contained in:
parent
150788c6c6
commit
c7e4ae6e12
1 changed files with 2 additions and 1 deletions
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue