diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-01-30 16:48:36 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-01-30 16:48:36 +0100 |
commit | 2d35140501b6471e502efb56197e8c69a55b2324 (patch) | |
tree | 8bc6f8b1eb0903600112db86e8cb8010f27a1374 | |
parent | adffe461a65884310f5d2e8b5b2e61df2351860c (diff) | |
download | wee-slack-2d35140501b6471e502efb56197e8c69a55b2324.tar.gz |
Fix quit callback function
The function was renamed at some point without renaming the hook signal,
so weechat would print an error when exiting.
-rw-r--r-- | wee_slack.py | 4 |
1 files 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 |