aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4164f9d..9e01603 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -339,6 +339,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)