aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2017-07-28 21:17:47 +0200
committerTollef Fog Heen <tfheen@err.no>2017-07-28 21:17:47 +0200
commitf366157054c5fa96a5874cdcc04ab9c9e002bd42 (patch)
tree568794ee79ecca009a8e4509abedc7ab7e90736c /wee_slack.py
parentc5023198f4adb3e7dcc0111a6798ccfec115adc4 (diff)
downloadwee-slack-f366157054c5fa96a5874cdcc04ab9c9e002bd42.tar.gz
Fix return codes in buffer_input_callback
Not sure this actually matters as weechat seemed happy with the wrong return codes too
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b974fea..22eae58 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -610,7 +610,7 @@ def buffer_input_callback(signal, buffer_ptr, data):
eventrouter = eval(signal)
channel = eventrouter.weechat_controller.get_channel_from_buffer_ptr(buffer_ptr)
if not channel:
- return w.WEECHAT_RC_OK_EAT
+ return w.WEECHAT_RC_ERROR
reaction = re.match("^\s*(\d*)(\+|-):(.*):\s*$", data)
if reaction:
@@ -632,7 +632,7 @@ def buffer_input_callback(signal, buffer_ptr, data):
else:
channel.send_message(data)
# this is probably wrong channel.mark_read(update_remote=True, force=True)
- return w.WEECHAT_RC_ERROR
+ return w.WEECHAT_RC_OK
def buffer_switch_callback(signal, sig_type, data):