summaryrefslogtreecommitdiff
path: root/src/irc/irc-recv.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-12-26 17:29:50 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-12-26 17:29:50 +0000
commit412ffa632eb5d1226000add8f1a13c567f445b41 (patch)
treeb6d2ab40552fdc2988c18f3ffaa50eb4f208ec54 /src/irc/irc-recv.c
parente0a50e4d9a55049bb5a73b519bf90c70b5d9af6d (diff)
downloadweechat-412ffa632eb5d1226000add8f1a13c567f445b41.zip
Fixed refresh bug with private buffer title
Diffstat (limited to 'src/irc/irc-recv.c')
-rw-r--r--src/irc/irc-recv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index 29e5d757b..7cb20de72 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -963,7 +963,10 @@ irc_cmd_recv_notice (t_irc_server *server, char *host, char *nick, char *argumen
BUFFER_TYPE_STANDARD, 0);
}
if (!ptr_channel->topic)
+ {
ptr_channel->topic = strdup ((host2) ? host2 : "");
+ gui_chat_draw_title (ptr_channel->buffer, 1);
+ }
gui_printf_type (ptr_channel->buffer, MSG_TYPE_NICK,
"%s<",
@@ -1887,7 +1890,10 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *nick, char *argume
BUFFER_TYPE_STANDARD, 0);
}
if (!ptr_channel->topic)
+ {
ptr_channel->topic = strdup (host2);
+ gui_chat_draw_title (ptr_channel->buffer, 1);
+ }
pos += 8;
pos2 = strchr (pos, '\01');
@@ -1997,7 +2003,10 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *nick, char *argume
BUFFER_TYPE_STANDARD, 0);
}
if (!ptr_channel->topic)
+ {
ptr_channel->topic = strdup (host2);
+ gui_chat_draw_title (ptr_channel->buffer, 1);
+ }
if (irc_is_highlight (pos, server->nick))
{