mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Implement support for strikethrough text.
https://defs.ircdocs.horse/info/formatting.html
This commit is contained in:
@@ -4434,6 +4434,9 @@ check_special_chars (char *cmd, int do_ascii) /* check for %X */
|
||||
case 'I':
|
||||
buf[i] = '\035';
|
||||
break;
|
||||
case 'S':
|
||||
buf[i] = '\036';
|
||||
break;
|
||||
case 'C':
|
||||
buf[i] = '\003';
|
||||
break;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user