wip small stuff

This commit is contained in:
Luuk van Oijen 2023-11-11 00:02:25 +01:00
parent 5d8c9cd792
commit 0b6ad43fbb
2 changed files with 13 additions and 8 deletions

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# BeamMP Server
A BeamMP server implementation in Rust, meant to (hopefully) replace the official server implementation one day.
## Features
TODO

View File

@ -149,14 +149,14 @@ impl Server {
clients_incoming_lock.len()
);
for i in 0..clients_incoming_lock.len() {
joined_names.push(
clients_incoming_lock[i]
.info
.as_ref()
.unwrap()
.username
.clone(),
);
let name = clients_incoming_lock[i]
.info
.as_ref()
.unwrap()
.username
.clone();
info!("Welcome {name}!");
joined_names.push(name);
self.clients.push(clients_incoming_lock.swap_remove(i));
}
trace!("Accepted incoming clients!");