summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-02-24 12:06:58 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-02-24 12:06:58 +0100
commit87ace68b4d3fe928a1073f014a40ebc315797a71 (patch)
treee6755c47ab86aad8c3f582acfbad4c4f16a1bd03
parent4cd6fad268dd37983e4535450f0030e4dacd06a4 (diff)
downloadweechat-87ace68b4d3fe928a1073f014a40ebc315797a71.zip
Do not update self nick color when changing option weechat.color.chat_nick_colors
-rw-r--r--src/plugins/irc/irc-config.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 945ba6bb9..ff8990a8f 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -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));
+ }
}
}
}