aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-04 23:37:06 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-04 23:37:06 +0200
commit61a31c3688347617ebdd125075172fe30d530515 (patch)
tree955eecd3e810c58996a654aeb4c4a99eb2af7d5e
parentdd1dc368a91f3cff650abb4dcbd695b098283ede (diff)
downloadgpn-tron-rust-61a31c3688347617ebdd125075172fe30d530515.tar
gpn-tron-rust-61a31c3688347617ebdd125075172fe30d530515.tar.bz2
gpn-tron-rust-61a31c3688347617ebdd125075172fe30d530515.tar.zst
parse chat
-rw-r--r--src/game/protocol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/protocol.rs b/src/game/protocol.rs
index abb246f..5c14b6e 100644
--- a/src/game/protocol.rs
+++ b/src/game/protocol.rs
@@ -98,6 +98,7 @@ impl Packet {
id: toks.next().ok_or(anyhow!("id missing"))?.parse()?,
message: toks.next().ok_or(anyhow!("message missing"))?.to_string(),
},
+ "chat" => Packet::Chat(toks.next().ok_or(anyhow!("message missing"))?.to_string()),
"win" => Packet::Win(
toks.next().ok_or(anyhow!("something missing"))?.parse()?,
toks.next().ok_or(anyhow!("something missing"))?.parse()?,