mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 13:20:40 +02:00
make configuration more understandable
This commit is contained in:
parent
4e71f417d0
commit
420f536c9b
2 changed files with 9 additions and 2 deletions
|
|
@ -507,7 +507,7 @@ bool settings::parse(const std::string &data, bool initialize)
|
|||
try {
|
||||
dpp::json json;
|
||||
try {
|
||||
json = dpp::json::parse(data);
|
||||
json = dpp::json::parse(data, nullptr, true, true);
|
||||
}
|
||||
catch (const std::exception &exception) {
|
||||
std::cerr << "[Exception] " << exception.what() << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue