| 140 | } |
| 141 | |
| 142 | bool CBanDB::Write(const banmap_t& banSet) |
| 143 | { |
| 144 | std::vector<std::string> errors; |
| 145 | if (common::WriteSettings(m_banlist_json, {{JSON_KEY, BanMapToJson(banSet)}}, errors)) { |
| 146 | return true; |
| 147 | } |
| 148 | |
| 149 | for (const auto& err : errors) { |
| 150 | LogError("%s\n", err); |
| 151 | } |
| 152 | return false; |
| 153 | } |
| 154 | |
| 155 | bool CBanDB::Read(banmap_t& banSet) |
| 156 | { |
no test coverage detected