modify msg source to show actual source id as well as (character) source
This commit is contained in:
parent
ac813064fd
commit
69baf79b8f
1 changed files with 6 additions and 2 deletions
|
@ -41,8 +41,12 @@ impl GameServer {
|
|||
continue;
|
||||
}
|
||||
if msg.source.is_empty() {
|
||||
msg.source = id.clone();
|
||||
msg.source = format!("({})", id.clone());
|
||||
}
|
||||
else {
|
||||
msg.source = format!("{} ({})", msg.source, id.clone());
|
||||
}
|
||||
|
||||
self.chat.push((id.clone(), msg.clone()));
|
||||
_ = broadcast.send((None, api::Response::Message(msg)));
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue