From 49aa853b0050e11d25977c43fa5310efcdd14744 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 29 Jun 2009 12:31:50 +0200 Subject: [PATCH] When IRC nick change is received, do not rename private buffer if it already exists with new nick --- src/plugins/irc/irc-protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index d27b720b2..ecf1903d6 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -653,7 +653,8 @@ irc_protocol_cmd_nick (struct t_irc_server *server, const char *command, { case IRC_CHANNEL_TYPE_PRIVATE: /* rename private window if this is with "old nick" */ - if (weechat_strcasecmp (ptr_channel->name, nick) == 0) + if ((weechat_strcasecmp (ptr_channel->name, nick) == 0) + && !irc_channel_search (server, new_nick)) { free (ptr_channel->name); ptr_channel->name = strdup (new_nick);