1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

Fixed bug with channel topic after reconnection (not erased) (bug #19384)

This commit is contained in:
Sebastien Helleu
2007-03-22 13:26:50 +00:00
parent 926932a20f
commit 1daa5061a9
4 changed files with 24 additions and 6 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-03-21
ChangeLog - 2007-03-22
Version 0.2.4 (under dev!):
* fixed bug with channel topic after reconnection (not erased) (bug #19384)
* added current buffer in hotlist when scrolling up in buffer (task #6664)
* fixed bug with explode_string / free_exploded_string when max_items > 0
* added new key (ctrl-R) for interactive and incremental search in buffer
+10 -2
View File
@@ -491,10 +491,18 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
arguments);
}
/* display channel creation date if joining new channel */
/* remove topic and display channel creation date if joining new channel */
if (!ptr_channel->nicks)
{
if (ptr_channel->topic)
{
free (ptr_channel->topic);
ptr_channel->topic = NULL;
gui_chat_draw_title (ptr_channel->buffer, 1);
}
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)
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-03-21
ChangeLog - 2007-03-22
Version 0.2.4 (under dev!):
* fixed bug with channel topic after reconnection (not erased) (bug #19384)
* added current buffer in hotlist when scrolling up in buffer (task #6664)
* fixed bug with explode_string / free_exploded_string when max_items > 0
* added new key (ctrl-R) for interactive and incremental search in buffer
+10 -2
View File
@@ -491,10 +491,18 @@ irc_cmd_recv_join (t_irc_server *server, char *host, char *nick, char *arguments
arguments);
}
/* display channel creation date if joining new channel */
/* remove topic and display channel creation date if joining new channel */
if (!ptr_channel->nicks)
{
if (ptr_channel->topic)
{
free (ptr_channel->topic);
ptr_channel->topic = NULL;
gui_chat_draw_title (ptr_channel->buffer, 1);
}
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)