mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
Fix bug in irc color decoding: reset color if color code is not followed by a color number
This commit is contained in:
@@ -160,6 +160,8 @@ irc_color_decode (const char *string, int keep_colors)
|
||||
(bg >= 0) ? irc_color_to_weechat[bg] : "");
|
||||
strcat ((char *)out, weechat_color(str_color));
|
||||
}
|
||||
else
|
||||
strcat ((char *)out, weechat_color("reset"));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user