.strip() target name in !karma

This commit is contained in:
jesopo 2018-10-02 15:14:42 +01:00
parent a9b0dd331b
commit 8f05f66a03

View file

@ -73,6 +73,7 @@ class Module(ModuleManager.BaseModule):
target = event["args"]
else:
target = event["user"].nickname
target = target.strip()
if event["server"].get_setting("karma-nickname-only", False):
karma = event["server"].get_user(target).get_setting("karma", 0)