1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Do not strip the comma in a mirc color if it is not followed by a digit, bug

#250.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4920 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-11-24 23:22:44 +00:00 committed by exg
parent be57a4e3e1
commit 3f0743e749

View File

@ -828,10 +828,10 @@ static void get_mirc_color(const char **str, int *fg_ret, int *bg_ret)
}
if (**str == ',') {
/* background color */
(*str)++;
if (!i_isdigit(**str))
if (!i_isdigit(*str[1]))
bg = -1;
else {
(*str)++;
bg = **str-'0';
(*str)++;
if (i_isdigit(**str)) {