Clean up
This commit is contained in:
parent
49e6f8a68b
commit
3345822010
@ -278,9 +278,9 @@ impl Bot {
|
|||||||
self.client
|
self.client
|
||||||
.player_list()
|
.player_list()
|
||||||
.iter()
|
.iter()
|
||||||
.find_map(|(id, info)| {
|
.find_map(|(uid, info)| {
|
||||||
if info.player_alias == name {
|
if info.player_alias == name {
|
||||||
Some(id.clone())
|
Some(uid.clone())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user