From 976b7e14c8398d04df1ea7d9e7ff213d9afb8abb Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Wed, 21 Jan 2015 10:55:59 -0800 Subject: fixes SUPER ANNOYING CRASH :) --- wee_slack.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 4fd7c97..9449b6d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1382,12 +1382,16 @@ def quit_notification_cb(signal, sig_type, data): STOP_TALKING_TO_SLACK = True cache_write_cb("", "") +def script_unloaded(): + global STOP_TALKING_TO_SLACK + STOP_TALKING_TO_SLACK = True + # END Utility Methods # Main if __name__ == "__main__": if w.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE, - SCRIPT_DESC, "", ""): + SCRIPT_DESC, "script_unloaded", ""): WEECHAT_HOME = w.info_get("weechat_dir", "") CACHE_NAME = "slack.cache" -- cgit