mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 09:13:14 +02:00
Fixed bugs/crashs when closing buffers
This commit is contained in:
@@ -176,7 +176,8 @@ irc_buffer_close_cb (void *data, struct t_gui_buffer *buffer)
|
||||
if (ptr_channel)
|
||||
{
|
||||
/* send PART for channel if its buffer is closed */
|
||||
if (ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL)
|
||||
if ((ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL)
|
||||
&& (ptr_channel->nicks))
|
||||
{
|
||||
irc_command_part_channel (ptr_server, ptr_channel->name, NULL);
|
||||
irc_channel_free (ptr_server, ptr_channel);
|
||||
|
||||
Reference in New Issue
Block a user