From e472c24c502f7ae1b2aea9fdc03890b9c6213435 Mon Sep 17 00:00:00 2001 From: Joost Date: Sun, 9 Jul 2023 20:21:46 +0200 Subject: [PATCH] Include libunftp version in help message --- src/server/controlchan/commands/help.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/controlchan/commands/help.rs b/src/server/controlchan/commands/help.rs index bdfa8482..5288151b 100644 --- a/src/server/controlchan/commands/help.rs +++ b/src/server/controlchan/commands/help.rs @@ -28,7 +28,10 @@ where { #[tracing_attributes::instrument] async fn handle(&self, _args: CommandContext) -> Result { - let text = vec!["Help:", "Powered by libunftp", "View the docs at: https://unftp.rs/"]; + let text = vec![ + "Help:", + format!("Powered by libunftp: {}", env!("CARGO_PKG_VERSION")), + "View the docs at: https://unftp.rs/"]; Ok(Reply::new_multiline(ReplyCode::HelpMessage, text)) } }