From 377824ae7fd064ff21d8602ab007de6147b9717c Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 2 Feb 2023 17:03:53 +0100 Subject: [PATCH] Merge pull request #1442 from lheckemann/master Support receiving monospace (cherry picked from commit c06be88d8f107f1890402a266735bc0659dd6021) --- src/fe-common/core/formats.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index b660b616..0c8b3088 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -1303,7 +1303,7 @@ static void get_mirc_color(const char **str, int *fg_ret, int *bg_ret) #define IS_COLOR_CODE(c) \ ((c) == 2 || (c) == 3 || (c) == 4 || (c) == 6 || (c) == 7 || \ - (c) == 15 || (c) == 22 || (c) == 27 || (c) == 29 || (c) == 31) + (c) == 15 || (c) == 17 || (c) == 22 || (c) == 27 || (c) == 29 || (c) == 31) /* Return how many characters in `str' must be skipped before `len' characters of text is skipped. */ @@ -1585,6 +1585,10 @@ void format_send_as_gui_flags(TEXT_DEST_REC *dest, const char *text, SIGNAL_FUNC bgcolor = -1; flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE; break; + case 17: + if (!hide_text_style) + flags ^= GUI_PRINT_FLAG_MONOSPACE; + break; case 22: /* reverse */ if (!hide_text_style)