aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2016-09-29 15:35:03 -0700
committerGitHub <noreply@github.com>2016-09-29 15:35:03 -0700
commita7b34fedd9d01d4b5e0f05b510dea3b1bf443cff (patch)
tree29f561f516797a6bbaf85cda01b0e7eb0ad67337
parent59d2235c0ef7bf87e07029aa3bcef5518ba4ef74 (diff)
parenta84e0c0e6f4c392214e8851148ad2078292bf87e (diff)
downloadwee-slack-a7b34fedd9d01d4b5e0f05b510dea3b1bf443cff.tar.gz
Merge pull request #262 from rawdigits/reaction_regex_improvement
add whitespace and anchors
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 2933f6e..11b4233 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -369,7 +369,7 @@ def buffer_input_cb(b, buffer, data):
channel = channels.find(buffer)
if not channel:
return w.WEECHAT_RC_OK_EAT
- reaction = re.match("(\d*)(\+|-):(.*):", data)
+ reaction = re.match("^\s*(\d*)(\+|-):(.*):\s*$", data)
if not reaction and not data.startswith('s/'):
channel.send_message(data)
# channel.buffer_prnt(channel.server.nick, data)