Implement support for strikethrough text.

https://defs.ircdocs.horse/info/formatting.html
This commit is contained in:
Sadie Powell
2021-06-01 13:31:38 +01:00
committed by Patrick
parent 08e13a3ac5
commit 55e4f1c42e
6 changed files with 57 additions and 11 deletions

View File

@@ -329,6 +329,7 @@ strip_color2 (const char *src, int len, char *dst, int flags)
case '\026': /*ATTR_REVERSE: */
case '\002': /*ATTR_BOLD: */
case '\037': /*ATTR_UNDERLINE: */
case '\036': /*ATTR_STRIKETHROUGH: */
case '\035': /*ATTR_ITALICS: */
if (!(flags & STRIP_ATTRIB)) goto pass_char;
break;