only accept space between word and modifier for word karma when : or ,

This commit is contained in:
jesopo 2019-10-09 10:31:56 +01:00
parent a43edd17ae
commit 7ea434e62e

View file

@ -7,7 +7,7 @@ from src import EventManager, ModuleManager, utils
KARMA_DELAY_SECONDS = 3
REGEX_WORD = re.compile(r"^([^(\s,:]+)[:,]?\s*(\+\+|--)\s*$")
REGEX_WORD = re.compile(r"^([^(\s,:]+)(?:[:,]?\s*)?(\+\+|--)\s*$")
REGEX_PARENS = re.compile(r"\(([^)]+)\)(\+\+|--)")
@utils.export("channelset", utils.BoolSetting("karma-pattern",