aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_buffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_buffer.py')
-rw-r--r--slack/slack_buffer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/slack/slack_buffer.py b/slack/slack_buffer.py
index afb5282..761b9a3 100644
--- a/slack/slack_buffer.py
+++ b/slack/slack_buffer.py
@@ -530,7 +530,11 @@ class SlackBuffer(ABC):
return weechat.WEECHAT_RC_OK
def _buffer_close_cb(self, data: str, buffer: str) -> int:
- run_async(self._buffer_close(update_server=True))
+ run_async(
+ self._buffer_close(
+ update_server=shared.config.look.leave_channel_on_buffer_close.value
+ )
+ )
return weechat.WEECHAT_RC_OK
async def _buffer_close(