aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2016-06-17 07:57:36 -0700
committerGitHub <noreply@github.com>2016-06-17 07:57:36 -0700
commitc93d03925fb2d0c3fbb6c48309e9570c71e392be (patch)
tree6eb6889bd203cf28b22c7fba97c62f8bd9dac40c
parent57725fe24b04fb1fa4f7b209f2ddafb42433f120 (diff)
parenta065662f20e9bc8140e5e44f694aa547fc6b815c (diff)
downloadwee-slack-c93d03925fb2d0c3fbb6c48309e9570c71e392be.tar.gz
Merge pull request #222 from bendem/fix/message-on-server-query
Fix error when sending messages to server query
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index cdf15c6..7f3900a 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -341,6 +341,8 @@ class SlackServer(object):
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)
if not reaction and not data.startswith('s/'):
channel.send_message(data)