From 8394cd8050c5fccf9407caa45ee876a1463478fa Mon Sep 17 00:00:00 2001 From: 13xforever Date: Tue, 4 May 2021 14:48:59 +0500 Subject: [PATCH] clean more unicdoe blocks from usernames --- CompatBot/Config.cs | 2 +- CompatBot/EventHandlers/UsernameZalgoMonitor.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CompatBot/Config.cs b/CompatBot/Config.cs index d5119b38..4a03b372 100644 --- a/CompatBot/Config.cs +++ b/CompatBot/Config.cs @@ -163,7 +163,7 @@ namespace CompatBot public static readonly IReadOnlyList Channels = new List { - 272875751773306881, + 272875751773306881, // #media 319224795785068545, }.AsReadOnly(); diff --git a/CompatBot/EventHandlers/UsernameZalgoMonitor.cs b/CompatBot/EventHandlers/UsernameZalgoMonitor.cs index fdd03158..a25b099d 100644 --- a/CompatBot/EventHandlers/UsernameZalgoMonitor.cs +++ b/CompatBot/EventHandlers/UsernameZalgoMonitor.cs @@ -157,7 +157,9 @@ namespace CompatBot.EventHandlers else { codePoint |= c & 0x3ff; - if (codePoint is >= 0x10380 and < 0x10400 // Ugaritic and Old Persian + if (codePoint is >= 0x016a0 and < 0x01700 // Runic + or >= 0x101d0 and < 0x10200 // Phaistos Disc + or >= 0x10380 and < 0x10400 // Ugaritic and Old Persian or >= 0x12000 and < 0x13000) // Cuneiform continue;