1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

Fixed bug with display of message 329 (channel creation date), now displayed after a /cycle

This commit is contained in:
Sebastien Helleu
2006-08-17 23:08:41 +00:00
parent 440214d098
commit e64138b70a
2 changed files with 16 additions and 2 deletions
+8 -1
View File
@@ -456,7 +456,6 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
}
gui_buffer_new (gui_current_window, server, ptr_channel,
BUFFER_TYPE_STANDARD, 1);
ptr_channel->display_creation_date = 1;
}
pos = strchr (host, '!');
@@ -475,9 +474,17 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
arguments);
}
/* display channel creation date if joining new channel */
if (!ptr_channel->nicks)
ptr_channel->display_creation_date = 1;
/* add nick in channel */
ptr_nick = nick_new (server, ptr_channel, nick, 0, 0, 0, 0, 0);
if (ptr_nick)
ptr_nick->host = strdup ((pos) ? pos + 1 : host);
/* redraw nicklist and status bar */
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
return 0;
+8 -1
View File
@@ -456,7 +456,6 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
}
gui_buffer_new (gui_current_window, server, ptr_channel,
BUFFER_TYPE_STANDARD, 1);
ptr_channel->display_creation_date = 1;
}
pos = strchr (host, '!');
@@ -475,9 +474,17 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
arguments);
}
/* display channel creation date if joining new channel */
if (!ptr_channel->nicks)
ptr_channel->display_creation_date = 1;
/* add nick in channel */
ptr_nick = nick_new (server, ptr_channel, nick, 0, 0, 0, 0, 0);
if (ptr_nick)
ptr_nick->host = strdup ((pos) ? pos + 1 : host);
/* redraw nicklist and status bar */
gui_nicklist_draw (ptr_channel->buffer, 1, 1);
gui_status_draw (ptr_channel->buffer, 1);
return 0;