diff options
Diffstat (limited to 'src/irc/irc-recv.c')
-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); |