From 30ead4dcb6b15f19a6d2b1fa5ba638543d0a5a69 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 15 Sep 2019 22:47:50 +0100 Subject: [PATCH] parse "nick: ++" as "nick++" --- modules/karma.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/karma.py b/modules/karma.py index 1efe9011..e19ebc9c 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -83,7 +83,9 @@ class Module(ModuleManager.BaseModule): target = event["match"].group(2).strip().rstrip("".join(WORD_STOP)) if event["match"].group(1): - if not event["server"].has_user(event["match"].group(1)[:-1]): + if not target: + target = event["match"].group(1) + elif not event["server"].has_user(event["match"].group(1)[:-1]): target = "%s %s" % (event["match"].group(1), target) if target: