diff options
author | Ryan Huber <rhuber@gmail.com> | 2016-09-29 00:33:40 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2016-09-29 00:33:40 -0700 |
commit | a84e0c0e6f4c392214e8851148ad2078292bf87e (patch) | |
tree | 8a3453b3d57de20ade4f7950874a2bfcb1d0846c | |
parent | f4452d3d9fca69797aaf99614565b18540788ce0 (diff) | |
download | wee-slack-a84e0c0e6f4c392214e8851148ad2078292bf87e.tar.gz |
add whitespace and anchors
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 37d9248..6c1dec7 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) |