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