From b4f8b90cdb5353c6862235bb799c620e6865ac28 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 1 Sep 2014 23:19:44 +0300 Subject: [PATCH] Fix GETFILE documentation and reply when a command is undocumented --- res/values/strings.xml | 1 + src/ro/ieval/fonbot/Heavy.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index f72cfd0..3d8258e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -481,4 +481,5 @@ The help command can be used to get a list of commands and help for them. Exampl Executes a shell command as root and returns its output. FonBot waits for the command to finish, therefore this must not be used with long-running commands. This requires root access.\n Example: rootsh stop;sleep 3;start + This command is not documented (yet). diff --git a/src/ro/ieval/fonbot/Heavy.java b/src/ro/ieval/fonbot/Heavy.java index b1f443c..8fa7267 100644 --- a/src/ro/ieval/fonbot/Heavy.java +++ b/src/ro/ieval/fonbot/Heavy.java @@ -667,12 +667,17 @@ final class Heavy { case TORCH: Utils.sendMessage(context, replyTo, torch_help); break; + case GETFILE: + Utils.sendMessage(context, replyTo, getfile_help); + break; case SH: Utils.sendMessage(context, replyTo, sh_help); break; case ROOTSH: Utils.sendMessage(context, replyTo, rootsh_help); break; + default: + Utils.sendMessage(context, replyTo, command_not_documented); } } -- 2.30.2