aboutsummaryrefslogtreecommitdiffstats
path: root/slack/register.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-04 11:23:41 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 12:57:00 +0100
commit0a2ceeabf7e4cb6daa3a8bc9634d3da0e6d6d350 (patch)
tree134b634aed33ace0f7edb9025e7450852bedf73e /slack/register.py
parente4602df81ec1b304fa7b2a6dfbf2a99e1e0c9273 (diff)
downloadwee-slack-0a2ceeabf7e4cb6daa3a8bc9634d3da0e6d6d350.tar.gz
Don't run buffer close callback when script is unloading
We don't want to call the API to close im/mpim conversations when the script is unloading.
Diffstat (limited to 'slack/register.py')
-rw-r--r--slack/register.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slack/register.py b/slack/register.py
index b907c49..d8ab7e3 100644
--- a/slack/register.py
+++ b/slack/register.py
@@ -15,6 +15,7 @@ SCRIPT_DESC = "Extends weechat for typing notification/search/etc on slack.com"
def shutdown_cb():
+ shared.script_is_unloading = True
weechat.config_write(shared.config.weechat_config.pointer)
return weechat.WEECHAT_RC_OK