Parse currency prefix and suffix with InteractiveMessenger

- Allows proper colors and escaping
This commit is contained in:
Thijs Wiefferink 2018-03-09 11:50:08 +01:00
parent 51161fffee
commit 3be7573863

View File

@ -564,7 +564,10 @@ public class Utils {
} }
} }
result = result.replace(".", config.getString("decimalMark")); result = result.replace(".", config.getString("decimalMark"));
return before + result + after; Message resultMessage = Message.fromString(result);
resultMessage.prepend(before);
resultMessage.append(after);
return resultMessage.getSingle();
} }