summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-27 07:40:03 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-27 07:40:03 +0200
commit85c02e913723c057aeec49dcb1d0edee1a85b872 (patch)
tree9b0f3a20a142ab69cfd8f08b84a9ab0c309a0ec6
parent8d86d85b66e5a185c8a4dda51cb257bd9c47969b (diff)
downloadweechat-85c02e913723c057aeec49dcb1d0edee1a85b872.zip
irc: close /list buffer when the server buffer is closed (closes #2121)
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/plugins/irc/irc-buffer.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0c99a0720..cd9de77d4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
### Fixed
+- irc: close /list buffer when the server buffer is closed ([#2121](https://github.com/weechat/weechat/issues/2121))
- php: fix return value of function hdata_longlong
- tcl: fix return value of function hdata_longlong ([#2119](https://github.com/weechat/weechat/issues/2119))
- core, relay: fix include directory of libcjson and libzstd
diff --git a/src/plugins/irc/irc-buffer.c b/src/plugins/irc/irc-buffer.c
index 5f8f4a561..b957c4f17 100644
--- a/src/plugins/irc/irc-buffer.c
+++ b/src/plugins/irc/irc-buffer.c
@@ -244,6 +244,10 @@ irc_buffer_close_cb (const void *pointer, void *data,
*/
irc_buffer_close_server_channels (ptr_server);
+ /* close list buffer */
+ if (ptr_server->list->buffer)
+ weechat_buffer_close (ptr_server->list->buffer);
+
ptr_server->buffer = NULL;
}
else if (ptr_server && (ptr_server->list->buffer == buffer))