| 128 | } |
| 129 | |
| 130 | bool CBanDB::Write(const banmap_t& banSet) |
| 131 | { |
| 132 | std::vector<std::string> errors; |
| 133 | if (util::WriteSettings(m_banlist_json, {{JSON_KEY, BanMapToJson(banSet)}}, errors)) { |
| 134 | return true; |
| 135 | } |
| 136 | |
| 137 | for (const auto& err : errors) { |
| 138 | error("%s", err); |
| 139 | } |
| 140 | return false; |
| 141 | } |
| 142 | |
| 143 | bool CBanDB::Read(banmap_t& banSet) |
| 144 | { |
no test coverage detected