21 std::string
getBanName(
const std::string &ip)
const;
22 void add(
const std::string &ip,
const std::string &name);
23 void remove(
const std::string &ip_or_name);
void save()
Definition ban.cpp:54
StringMap m_ips
Definition ban.h:29
std::mutex m_mutex
Definition ban.h:27
std::string getBanName(const std::string &ip) const
Definition ban.cpp:91
std::string m_banfilepath
Definition ban.h:28
std::string getBanDescription(const std::string &ip_or_name) const
Definition ban.cpp:77
void add(const std::string &ip, const std::string &name)
Definition ban.cpp:100
bool isIpBanned(const std::string &ip) const
Definition ban.cpp:71
void load()
Definition ban.cpp:32
void remove(const std::string &ip_or_name)
Definition ban.cpp:107
bool isModified() const
Definition ban.cpp:121
~BanManager()
Definition ban.cpp:27
bool m_modified
Definition ban.h:30
BanManager(const std::string &banfilepath)
Definition ban.cpp:16
std::unordered_map< std::string, std::string > StringMap
Definition string.h:66