From 61a31c3688347617ebdd125075172fe30d530515 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 4 Jun 2024 23:37:06 +0200 Subject: parse chat --- src/game/protocol.rs | 1 + 1 file changed, 1 insertion(+) 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()?, -- cgit v1.2.3-70-g09d2