summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-03-22 13:26:50 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-03-22 13:26:50 +0000
commit1daa5061a9f0868ad798c2339c4df329435e513e (patch)
tree62c3831b6b83130a6ed05a7d21395d427dc5024a /src/irc
parent926932a20f033bf73afbe60b943d3aa4813536dc (diff)
downloadweechat-1daa5061a9f0868ad798c2339c4df329435e513e.zip
Fixed bug with channel topic after reconnection (not erased) (bug #19384)
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-recv.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index 3b1057d43..51657147c 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -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)