blacklist stdout

This commit is contained in:
Junko 2024-01-28 14:27:18 +01:00
parent 15d9ea5aab
commit 5b0b6513a9
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ fn avatar_module(config: &Config, names: &Vec<String>) -> Result<(), &'static st
if blacklist.contains(&name.to_lowercase()) { if blacklist.contains(&name.to_lowercase()) {
let index = whitelisted_names.iter().position(|x| *x == name.to_lowercase()).unwrap(); let index = whitelisted_names.iter().position(|x| *x == name.to_lowercase()).unwrap();
whitelisted_names.remove(index); whitelisted_names.remove(index);
println!("{} blacklisted from avatar module", name);
} }
} }