mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
irc: compute color in case insensitive way (closes #194)
Reintroduce infos "irc_nick_color" and "irc_nick_color_name" (that were marked deprecated since version 1.5). A server name is added in the two infos and is optional, for backward compatibility.
This commit is contained in:
@@ -1241,7 +1241,7 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date,
|
||||
if (ptr_nick)
|
||||
nick_color = strdup (ptr_nick->color);
|
||||
else if (nick)
|
||||
nick_color = irc_nick_find_color (nick);
|
||||
nick_color = irc_nick_find_color (server, nick);
|
||||
else
|
||||
nick_color = strdup (IRC_COLOR_CHAT_NICK);
|
||||
if (irc_server_prefix_char_statusmsg (server, target[0]))
|
||||
@@ -1336,7 +1336,9 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date,
|
||||
"%s%s%s%s%s%s",
|
||||
weechat_prefix ("action"),
|
||||
(nick_is_me) ?
|
||||
IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv (ptr_channel, nick),
|
||||
IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv (server,
|
||||
ptr_channel,
|
||||
nick),
|
||||
nick,
|
||||
(pos_args) ? IRC_COLOR_RESET : "",
|
||||
(pos_args) ? " " : "",
|
||||
|
||||
Reference in New Issue
Block a user