diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-04-19 21:53:12 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-04-19 21:53:12 +0000 |
commit | a99e6f3d957ec9a7f55e60f4aa95fa7a8ab20fca (patch) | |
tree | 6fea343c1676ff757faadd5f80052cba7411df75 /src | |
parent | 35d6c43f85833b235cab22f7565669c46409cc84 (diff) | |
download | weechat-a99e6f3d957ec9a7f55e60f4aa95fa7a8ab20fca.zip |
Fixed bug when a user changes nick (do not change private window name if nick is not the same)
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc-recv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 6239b5ebc..d5ffb8292 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -630,7 +630,8 @@ irc_cmd_recv_nick (t_irc_server *server, char *host, char *arguments) { if ((SERVER(ptr_window) == server) && WIN_IS_PRIVATE(ptr_window)) { - if (CHANNEL(ptr_window)->name) + if ((CHANNEL(ptr_window)->name) + && (strcmp (ptr_nick->nick, CHANNEL(ptr_window)->name) == 0)) { free (CHANNEL(ptr_window)->name); CHANNEL(ptr_window)->name = strdup (arguments); |