1
0
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:
Sebastien Helleu
2008-02-01 22:50:03 +01:00
parent 184700e597
commit d7cc27f713
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -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);