diff options
Diffstat (limited to 'server/src/client/blacklist.h')
| -rw-r--r-- | server/src/client/blacklist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/client/blacklist.h b/server/src/client/blacklist.h index b2bc9f8..f016f17 100644 --- a/server/src/client/blacklist.h +++ b/server/src/client/blacklist.h @@ -19,7 +19,7 @@ class blacklist { m_data = nlohmann::json::parse(data); } - void add(const std::string_view hwid) { + void add(const uint32_t hwid) { m_data["hwids"].emplace_back(hwid); save(); @@ -31,9 +31,9 @@ class blacklist { o.close(); } - bool find(const std::string &key) { + bool find(const uint32_t key) { for (auto &item : m_data["hwids"]) { - if (item.get<std::string>() == key) { + if (item.get<uint32_t>() == key) { return true; } } |