aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-12-19 15:06:15 +0000
committerGravatar jesopo2019-12-19 15:06:15 +0000
commit5ff5b07c22dbf24af66d173e23a4e403728fa91e (patch)
tree645e890e5c22aa5493197aa4f12a4711b004e243 /modules
parentdefault !wordiest to the current channel (diff)
signature
permit spaces before ++/-- for single-word karma
Diffstat (limited to 'modules')
-rw-r--r--modules/karma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/karma.py b/modules/karma.py
index f728e7e1..d6569b91 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_WORD_START = re.compile(r"^(\+\+|--)(?:\s*)([^(\s,:]+)\s*$")
REGEX_PARENS = re.compile(r"\(([^)]+)\)(\+\+|--)")