diff options
| author | 2019-10-09 10:31:56 +0100 | |
|---|---|---|
| committer | 2019-10-09 10:31:56 +0100 | |
| commit | 7ea434e62e951a664fd17bc0de49db8e25a9f083 (patch) | |
| tree | 357fc9f707812983439a10cca0258d269f14d040 /modules/karma.py | |
| parent | duck_active should be when the duck spawns (diff) | |
| signature | ||
only accept space between word and modifier for word karma when : or ,
Diffstat (limited to 'modules/karma.py')
| -rw-r--r-- | modules/karma.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/karma.py b/modules/karma.py index 8d05745c..d4d697eb 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -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", |
