mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
When IRC nick change is received, do not rename private buffer if it already exists with new nick
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user