summaryrefslogtreecommitdiff
path: root/src/plugins
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 /src/plugins
parent8d86d85b66e5a185c8a4dda51cb257bd9c47969b (diff)
downloadweechat-85c02e913723c057aeec49dcb1d0edee1a85b872.zip
irc: close /list buffer when the server buffer is closed (closes #2121)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-buffer.c4
1 files changed, 4 insertions, 0 deletions
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))