mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Only insert gender to chat_context for players
This commit is contained in:
parent
af396aa8dd
commit
490a8d8776
@ -2918,6 +2918,9 @@ impl Client {
|
|||||||
match self.player_list.get(uid) {
|
match self.player_list.get(uid) {
|
||||||
Some(player_info) => {
|
Some(player_info) => {
|
||||||
result.player_alias.insert(*uid, player_info.clone());
|
result.player_alias.insert(*uid, player_info.clone());
|
||||||
|
result
|
||||||
|
.gender
|
||||||
|
.insert(*uid, gender_of_uid(uid).unwrap_or(comp::Gender::Masculine));
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
result
|
result
|
||||||
@ -2925,9 +2928,6 @@ impl Client {
|
|||||||
.insert(*uid, name_of_uid(uid).unwrap_or_else(|| "<?>".to_string()));
|
.insert(*uid, name_of_uid(uid).unwrap_or_else(|| "<?>".to_string()));
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
result
|
|
||||||
.gender
|
|
||||||
.insert(*uid, gender_of_uid(uid).unwrap_or(comp::Gender::Masculine));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
match &msg.chat_type {
|
match &msg.chat_type {
|
||||||
|
Loading…
Reference in New Issue
Block a user