blacklist stdout
This commit is contained in:
parent
15d9ea5aab
commit
5b0b6513a9
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue