Fix GETFILE documentation and reply when a command is undocumented
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 1 Sep 2014 20:19:44 +0000 (23:19 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 1 Sep 2014 20:19:44 +0000 (23:19 +0300)
res/values/strings.xml
src/ro/ieval/fonbot/Heavy.java

index f72cfd0b40a9dabd744d6126bccb1e0581c92e7b..3d8258e048b8f97bc2c37f9f90ff10ebc6f6afe8 100644 (file)
@@ -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
        </string>
+       <string name="command_not_documented">This command is not documented (yet).</string>
 </resources>
index b1f443c5f6067fb8a1366f2e51e71777d3504b32..8fa72677a31461728dbd49e0dd6e437634f11d8c 100644 (file)
@@ -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);
                }
        }
 
This page took 0.014266 seconds and 4 git commands to generate.