Fix /echo mishandling non-string values
| @@ -2015,6 +2015,9 @@ async function echoCallback(args, value) { | ||
| 2015 | 2015 | args.severity = null; |
| 2016 | 2016 | } |
| 2017 | 2017 | |
| 2018 | + // Make sure that the value is a string | |
| 2019 | + value = String(value); | |
| 2020 | + | |
| 2018 | 2021 | const title = args.title ? args.title : undefined; |
| 2019 | 2022 | const severity = args.severity ? args.severity : 'info'; |
| 2020 | 2023 | |