mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-22 08:08:43 +00:00
formatting
This commit is contained in:
1 parent
de398c0208
commit
3376eb7482
2 files changed
+6
-3
No files matched your search
@@ -524,7 +524,6 @@ impl Server {
|
||||
} else {
|
||||
self.clients.swap_remove(i);
|
||||
}
|
||||
|
||||
info!("Client {} disconnected!", id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,8 +54,12 @@ impl NotificationPacket {
|
||||
pub fn new<S: Into<String>>(msg: S) -> Self {
|
||||
Self(format!("J{}", msg.into()))
|
||||
}
|
||||
pub fn welcome<S: Into<String>>(msg: S) -> Self { Self(format!("JWelcome {}!", msg.into()))}
|
||||
pub fn left<S: Into<String>>(msg: S) -> Self { Self(format!("L{} left the server!", msg.into()))}
|
||||
pub fn welcome<S: Into<String>>(msg: S) -> Self {
|
||||
Self(format!("JWelcome {}!", msg.into()))
|
||||
}
|
||||
pub fn left<S: Into<String>>(msg: S) -> Self {
|
||||
Self(format!("L{} left the server!", msg.into()))
|
||||
}
|
||||
}
|
||||
|
||||
/// Protocol:
|
||||
|
||||
Reference in new issue
Block a user