mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
irc: use color "default" for any invalid color in option weechat.color.chat_nick_colors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.6-dev, 2011-08-20
|
||||
v0.3.6-dev, 2011-08-21
|
||||
|
||||
|
||||
Version 0.3.6 (under dev!)
|
||||
@@ -61,6 +61,8 @@ Version 0.3.6 (under dev!)
|
||||
description for option when function is called)
|
||||
* scripts: fix crash with scripts not auto-loaded having a buffer opened after
|
||||
/upgrade (input/close callbacks for buffer not set properly)
|
||||
* irc: use color "default" for any invalid color in option
|
||||
weechat.color.chat_nick_colors
|
||||
* irc: send WHO command to check away nicks only if channel was not parted
|
||||
* irc: fix crash when malformed IRC message 352 (WHO) is received (bug #33790)
|
||||
* irc: fix crash when command "/buffer close" is used in a server command to
|
||||
|
||||
@@ -169,7 +169,7 @@ irc_nick_find_color (const char *nickname)
|
||||
{
|
||||
int color;
|
||||
char *nickname2;
|
||||
const char *forced_color;
|
||||
const char *forced_color, *str_color;
|
||||
|
||||
if (!irc_config_nick_colors)
|
||||
irc_config_set_nick_colors ();
|
||||
@@ -199,7 +199,8 @@ irc_nick_find_color (const char *nickname)
|
||||
free (nickname2);
|
||||
|
||||
/* return color */
|
||||
return weechat_color (irc_config_nick_colors[color]);
|
||||
str_color = weechat_color (irc_config_nick_colors[color]);
|
||||
return (str_color[0]) ? str_color : weechat_color("default");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user