don't group capture disregarded "nick: " prefix in karma

This commit is contained in:
jesopo 2019-09-07 17:34:55 +01:00
parent 4e617366d3
commit c631575e4f

View file

@ -8,7 +8,7 @@ from src import EventManager, ModuleManager, utils
WORD_STOP = [",", ":"]
KARMA_DELAY_SECONDS = 3
REGEX_KARMA = re.compile(r"^(?:(\S+)[:,] )?(.*)(\+{2}|\-{2})$")
REGEX_KARMA = re.compile(r"^(?:\S+[:,] )?(.*)(\+{2}|\-{2})$")
@utils.export("channelset", utils.BoolSetting("karma-verbose",
"Enable/disable automatically responding to karma changes"))