1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 06:03:12 +02:00

Add spamfilter { input-conversion confusables; ..... } for UTF8 conversion

of lookalike characters to simple latin characters.

Also add SPAMINFO command so you can see the result of the conversion.
This commit is contained in:
Bram Matthys
2025-03-22 08:31:22 +01:00
parent 9b3d219743
commit e1fac402d5
3 changed files with 54 additions and 4 deletions
+1 -2
View File
@@ -1959,7 +1959,6 @@ char *_utf8_convert_confusables(const char *i, char *obuf, int olen)
utfchar = utf8_to_utf32(i);
len = utf8_charlen(i); // can't utfchar() set this too?
conv = utf8_lookup_confusable(utfchar);
config_status("char 0x%x to 0x%x", utfchar, conv); // DEBUG
if (conv == 0)
{
/* use as-is */
@@ -1979,4 +1978,4 @@ char *_utf8_convert_confusables(const char *i, char *obuf, int olen)
*o = '\0';
return obuf;
}
}