Output convertion result as is
This commit is contained in:
parent
8e03eda655
commit
0aa2136fec
3 changed files with 8 additions and 4 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue