aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorbendem <online@bendem.be>2016-04-19 14:54:33 +0200
committerbendem <online@bendem.be>2016-04-20 21:52:07 +0200
commita065662f20e9bc8140e5e44f694aa547fc6b815c (patch)
tree0b6e2cb3b7f8341d08a4d92ceb5509a4a60b5c8b /wee_slack.py
parentfabd8894affd8b823924cf3366cf8088bb281b26 (diff)
downloadwee-slack-a065662f20e9bc8140e5e44f694aa547fc6b815c.tar.gz
Fix error when sending messages to server query
Diffstat (limited to 'wee_slack.py')
-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)