From: Marius Gavrilescu Date: Mon, 1 Sep 2014 20:19:44 +0000 (+0300) Subject: Fix GETFILE documentation and reply when a command is undocumented X-Git-Tag: 0.000_002~4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b4f8b90cdb5353c6862235bb799c620e6865ac28;p=fonbot.git Fix GETFILE documentation and reply when a command is undocumented --- 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); } }