1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

Do not update self nick color when changing option weechat.color.chat_nick_colors

This commit is contained in:
Sebastien Helleu
2011-02-24 12:06:58 +01:00
parent 4cd6fad268
commit 87ace68b4d
+6 -3
View File
@@ -181,9 +181,12 @@ irc_config_compute_nick_colors ()
for (ptr_nick = ptr_channel->nicks; ptr_nick;
ptr_nick = ptr_nick->next_nick)
{
if (ptr_nick->color)
free (ptr_nick->color);
ptr_nick->color = strdup (irc_nick_find_color (ptr_nick->name));
if (weechat_strcasecmp (ptr_nick->name, ptr_server->nick) != 0)
{
if (ptr_nick->color)
free (ptr_nick->color);
ptr_nick->color = strdup (irc_nick_find_color (ptr_nick->name));
}
}
}
}