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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user