Output convertion result as is

This commit is contained in:
Erik C. Thauvin 2022-08-15 09:52:41 -07:00
parent 8e03eda655
commit 0aa2136fec
3 changed files with 8 additions and 4 deletions

View file

@ -147,7 +147,7 @@ class CurrencyConverter : ThreadedModule() {
if (json.getBoolean("success")) {
PublicMessage(
"${cmds[0]} ${SYMBOLS[to]} = ${json.getDouble("result")} ${SYMBOLS[from]}"
"${cmds[0]} ${SYMBOLS[to]} = ${json.get("result")} ${SYMBOLS[from]}"
)
} else {
ErrorMessage("Sorry, an error occurred while converting the currencies.")