1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 01:33:12 +02:00

Fixed log problem with new color display system (now color codes are removed in

log file)
This commit is contained in:
Sebastien Helleu
2005-11-04 13:11:39 +00:00
parent 8a9e8ecc88
commit dd3977367f
10 changed files with 114 additions and 10 deletions
+12
View File
@@ -238,6 +238,18 @@ gui_color_decode (unsigned char *string, int keep_colors)
}
}
break;
case GUI_ATTR_WEECHAT_COLOR_CHAR:
string++;
if (isdigit (string[0]) && isdigit (string[1]))
{
if (keep_colors)
{
out[out_pos++] = string[0];
out[out_pos++] = string[1];
}
string += 2;
}
break;
case GUI_ATTR_WEECHAT_SET_CHAR:
case GUI_ATTR_WEECHAT_REMOVE_CHAR:
string++;