From c7e4ae6e1212905ad76b42a55b875fc05d883570 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 2 Oct 2018 15:14:06 +0100 Subject: [PATCH] use Utils.irc_lower, not .lower() --- modules/karma.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/karma.py b/modules/karma.py index b67e42d5..46ab0379 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -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"],