aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-01-21 10:55:59 -0800
committerRyan Huber <rhuber@gmail.com>2015-01-21 10:55:59 -0800
commit976b7e14c8398d04df1ea7d9e7ff213d9afb8abb (patch)
tree321692facec9e73eb804a3a890f500cbc1508901
parent0bc2fd6a36c0e2848fdb018fa8d2a18afea21f62 (diff)
downloadwee-slack-976b7e14c8398d04df1ea7d9e7ff213d9afb8abb.tar.gz
fixes SUPER ANNOYING CRASH :)
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
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"