aboutsummaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-10-14 00:24:15 +0200
committermetamuffin <metamuffin@disroot.org>2024-10-14 00:24:15 +0200
commit3951a63d9393ed7e1381bbb9da95dfb2dd2d6b13 (patch)
treecd586f961075c8d5f8d2ac583dfbc257d82efca5 /server/src/commands.rs
parent3b0bb4132eb8d3a0fd3438f4f344e8687a5dd71e (diff)
downloadhurrycurry-3951a63d9393ed7e1381bbb9da95dfb2dd2d6b13.tar
hurrycurry-3951a63d9393ed7e1381bbb9da95dfb2dd2d6b13.tar.bz2
hurrycurry-3951a63d9393ed7e1381bbb9da95dfb2dd2d6b13.tar.zst
book intermediate representation and packets for sending to client
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index feb6ab65..25b51bff 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -195,7 +195,7 @@ impl Server {
.await
.map_err(|e| TrError::Plain(e.to_string()))?;
}
- Command::Book => replies.push(PacketC::Menu(Menu::Book)),
+ Command::Book => replies.push(PacketC::Menu(Menu::Document(self.data.book.clone()))),
Command::Download { r#type, name } => {
let source = match r#type {
DownloadType::Map => self.index.read_map(&name).await,