summaryrefslogtreecommitdiff
path: root/server/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/state.rs')
-rw-r--r--server/src/state.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/state.rs b/server/src/state.rs
index ed1a7488..ad22cad2 100644
--- a/server/src/state.rs
+++ b/server/src/state.rs
@@ -43,7 +43,7 @@ impl Server {
) -> Result<Vec<PacketC>> {
if let Some(p) = get_packet_player(&packet) {
if !self.connections.entry(conn).or_default().contains(&p) {
- bail!("Packet sent to player that is not owned by this connection.");
+ bail!("Packet sent to a player that is not owned by this connection.");
}
}
let mut replies = Vec::new();
@@ -67,7 +67,7 @@ impl Server {
}
PacketS::Join { .. } => {
if self.connections.entry(conn).or_default().len() > 8 {
- bail!("Players per connection limit exceeded.")
+ bail!("Players-per-connection limit exceeded.")
}
}
_ => (),
@@ -86,7 +86,7 @@ impl Server {
if self.count_chefs() <= 0 && !self.game.lobby {
self.tx
.send(PacketC::ServerMessage {
- text: "Game was aborted automatically due to a lack of players".to_string(),
+ text: "Game was aborted due to a lack of players".to_string(),
})
.ok();
self.load(self.index.generate("lobby").await?, None);