allow space between "++" and nickname

This commit is contained in:
jesopo 2019-12-10 10:51:37 +00:00
parent 69f4d43590
commit 671e259ada

View file

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