xC: regard more characters as highlight delimiters
All checks were successful
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success

Almost 10 years of a poor decision.
This commit is contained in:
Přemysl Eric Janouch 2025-01-08 06:01:40 +01:00
parent 278a7f95a9
commit 858734384b
Signed by: p
GPG Key ID: A0420B94F92B9493

4
xC.c
View File

@ -7034,9 +7034,7 @@ irc_is_highlight (struct server *s, const char *message)
cstr_transform (nick, s->irc_tolower);
// Special characters allowed in nicknames by RFC 2812: []\`_^{|} and -
// Also excluded from the ASCII: common user channel prefixes: +%@&~
// XXX: why did I exclude those? It won't match when IRC newbies use them.
const char *delimiters = ",.;:!?()<>/=#$* \t\r\n\v\f\"'";
const char *delimiters = "\t\n\v\f\r !\"#$%&'()*+,./:;<=>?@~";
bool result = false;
char *save = NULL;