From 06a86a92d44173f1cdd7e595259596f09f30142f Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 30 Mar 2013 13:09:44 +0200 Subject: [PATCH] Fix some messages The location messages lacked a space and the command disabled message was incorrect. These were fixed. --- res/values/strings.xml | 2 +- src/ro/ieval/fonbot/Heavy.java | 1 + src/ro/ieval/fonbot/Utils.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 7d76dc7..15fb4d9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -147,7 +147,7 @@ The help command can be used to get a list of commands and help for them. Exampl Disabling wifi… Polling server… Polling stopped - Command disabled%s disabled + Command %s disabled Command %s enabled Polling every %d milliseconds Incoming message from %1$s: \"%2$s\" sent at %3$s diff --git a/src/ro/ieval/fonbot/Heavy.java b/src/ro/ieval/fonbot/Heavy.java index f734437..3249db8 100644 --- a/src/ro/ieval/fonbot/Heavy.java +++ b/src/ro/ieval/fonbot/Heavy.java @@ -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())); } diff --git a/src/ro/ieval/fonbot/Utils.java b/src/ro/ieval/fonbot/Utils.java index 5fd9410..c4f3615 100644 --- a/src/ro/ieval/fonbot/Utils.java +++ b/src/ro/ieval/fonbot/Utils.java @@ -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; } -- 2.39.2