mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-04 16:24:25 +02:00
feat: cure names that don't start with an alphabetic character
This commit is contained in:
parent
431441b52f
commit
ccc3834210
@ -32,7 +32,7 @@ pub async fn cure(
|
|||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
|
|
||||||
if cured_name.is_empty() {
|
if cured_name.is_empty() || !cured_name.starts_with(|c: char| c.is_ascii_alphabetic()) {
|
||||||
cured_name = "ReVanced user".to_string();
|
cured_name = "ReVanced user".to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user