From 2d35140501b6471e502efb56197e8c69a55b2324 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Tue, 30 Jan 2018 16:48:36 +0100 Subject: Fix quit callback function The function was renamed at some point without renaming the hook signal, so weechat would print an error when exiting. --- wee_slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wee_slack.py b/wee_slack.py index 38f14b7..e400ad5 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -742,6 +742,7 @@ def buffer_list_update_callback(data, somecount): def quit_notification_callback(signal, sig_type, data): stop_talking_to_slack() + return w.WEECHAT_RC_OK @utf8_decode @@ -3481,7 +3482,7 @@ def setup_hooks(): w.hook_signal('buffer_closing', "buffer_closing_callback", "EVENTROUTER") w.hook_signal('buffer_switch', "buffer_switch_callback", "EVENTROUTER") w.hook_signal('window_switch', "buffer_switch_callback", "EVENTROUTER") - w.hook_signal('quit', "quit_notification_cb", "") + w.hook_signal('quit', "quit_notification_callback", "") if config.send_typing_notice: w.hook_signal('input_text_changed', "typing_notification_cb", "") @@ -3804,7 +3805,6 @@ if __name__ == "__main__": # setup_trace() # WEECHAT_HOME = w.info_get("weechat_dir", "") - # STOP_TALKING_TO_SLACK = False # Global var section slack_debug = None -- cgit