]> iEval git - fonbot.git/commitdiff
Fix some messages
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 30 Mar 2013 11:09:44 +0000 (13:09 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 30 Mar 2013 11:09:44 +0000 (13:09 +0200)
The location messages lacked a space and the command disabled
message was incorrect. These were fixed.

res/values/strings.xml
src/ro/ieval/fonbot/Heavy.java
src/ro/ieval/fonbot/Utils.java

index 7d76dc7dc71fe04f5ee0f20402bb741da0d3b74b..15fb4d9962f99c62f728be865c2300dbf7d1a567 100644 (file)
@@ -147,7 +147,7 @@ The help command can be used to get a list of commands and help for them. Exampl
     <string name="disabling_wifi">Disabling wifi…</string>
     <string name="polling_server">Polling server…</string>
     <string name="polling_stopped">Polling stopped</string>
-    <string name="command_disabled">Command disabled%s disabled</string>
+    <string name="command_disabled">Command %s disabled</string>
     <string name="command_enabled">Command %s enabled</string>
     <string name="polling_every_milliseconds">Polling every %d milliseconds</string>
     <string name="incoming_message">Incoming message from %1$s: \"%2$s\" sent at %3$s</string>
index f734437f4c452d8c3ee8dc11f25db109dbfa11f1..3249db8208a37e841c75a35380ac5cd03e5ea066 100644 (file)
@@ -166,6 +166,7 @@ final class Heavy {
                        final Date locationDate=new Date(loc.getTime());
                        sb.append(" ");
                        sb.append(toNonNull(context.getString(at)));
+                       sb.append(" ");
                        sb.append(locationDate.toString());
                        Utils.sendMessage(toNonNull(context), toNonNull(replyTo), toNonNull(sb.toString()));
                }
index 5fd941048c8595e2c9783dab2d78ec1ae0070959..c4f3615a8313a318ffad513fcbbceb214c7838d0 100644 (file)
@@ -439,7 +439,7 @@ public final class Utils {
         */
        private static void processCommand(final Context context, final Command cmd,final String[] args,final Address replyTo){
                if(Heavy.isCommandDisabled(context, cmd)){
-                       sendMessage(context, replyTo, command_disabled);
+                       sendMessage(context, replyTo, command_disabled, cmd.toString());
                        return;
                }
 
This page took 0.025772 seconds and 4 git commands to generate.