mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
irc: clear /list buffer when disconnecting from server (closes #2133)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
- irc, xfer: fix display of input prompt in IRC private buffers and DCC chat buffers ([#2128](https://github.com/weechat/weechat/issues/2128))
|
||||
- irc: close /list buffer when the server buffer is closed ([#2121](https://github.com/weechat/weechat/issues/2121))
|
||||
- irc: clear /list buffer when disconnecting from server ([#2133](https://github.com/weechat/weechat/issues/2133))
|
||||
- irc: display an explicit message on /list buffer when the list of channels is empty ([#2133](https://github.com/weechat/weechat/issues/2133))
|
||||
- xfer: fix send of data on the DCC chat buffer after `/upgrade` if the buffer was opened before the upgrade ([#2092](https://github.com/weechat/weechat/issues/2092))
|
||||
- php: fix return value of function hdata_longlong
|
||||
|
||||
@@ -4312,6 +4312,13 @@ irc_server_close_connection (struct t_irc_server *server)
|
||||
/* remove all batched events pending */
|
||||
irc_batch_free_all (server);
|
||||
|
||||
/* remove all channels on /list buffer */
|
||||
if (server->list->buffer)
|
||||
{
|
||||
irc_list_reset (server);
|
||||
irc_list_buffer_refresh (server, 1);
|
||||
}
|
||||
|
||||
/* server is now disconnected */
|
||||
server->authentication_method = IRC_SERVER_AUTH_METHOD_NONE;
|
||||
server->sasl_mechanism_used = -1;
|
||||
|
||||
Reference in New Issue
Block a user