mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
Fix bug/crash when any color option is changed (bug #23566)
This commit is contained in:
@@ -507,6 +507,7 @@ irc_nick_as_prefix (struct t_irc_nick *nick, const char *nickname,
|
||||
char prefix[2], str_prefix_color[64];
|
||||
int prefix_color;
|
||||
|
||||
prefix[0] = '\0';
|
||||
prefix[1] = '\0';
|
||||
if (weechat_config_boolean (weechat_config_get ("weechat.look.nickmode")))
|
||||
{
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
#define IRC_COLOR_CHAT weechat_color("chat")
|
||||
#define IRC_COLOR_CHAT_CHANNEL weechat_color("chat_channel")
|
||||
#define IRC_COLOR_CHAT_DELIMITERS weechat_color("chat_delimiters")
|
||||
#define IRC_COLOR_CHAT_HIGHLIGHT weechat_color("chat_highlight")
|
||||
#define IRC_COLOR_CHAT_HOST weechat_color("chat_host")
|
||||
#define IRC_COLOR_CHAT_NICK weechat_color("chat_nick")
|
||||
#define IRC_COLOR_CHAT_NICK_SELF weechat_color("chat_nick_self")
|
||||
|
||||
Reference in New Issue
Block a user