aboutsummaryrefslogtreecommitdiff
path: root/server/src/state.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-02 01:56:48 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-02 14:18:02 +0200
commit84e2b868e87043f4e3844738f4e1c2a7bcbb96c0 (patch)
treee3c86d15d5b68c816a56b30c7c8fc99e8a01059c /server/src/state.rs
parentc273af0311b0676dd6bb1bcfc600474508afd125 (diff)
downloadhurrycurry-84e2b868e87043f4e3844738f4e1c2a7bcbb96c0.tar
hurrycurry-84e2b868e87043f4e3844738f4e1c2a7bcbb96c0.tar.bz2
hurrycurry-84e2b868e87043f4e3844738f4e1c2a7bcbb96c0.tar.zst
rephrase some messages in server
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);