iw4x-client/src/Components/Modules/Bans.hpp

33 lines
555 B
C++
Raw Normal View History

2016-08-15 10:40:30 -04:00
namespace Components
{
class Bans : public Component
{
public:
2016-08-15 19:54:52 -04:00
typedef std::pair<SteamID, Game::netIP_t> Entry;
2016-08-15 10:40:30 -04:00
Bans();
~Bans();
#ifdef DEBUG
const char* GetName() { return "Bans"; };
#endif
static void BanClientNum(int num, std::string reason);
2016-08-15 19:54:52 -04:00
static bool IsBanned(Entry entry);
static void InsertBan(Entry entry);
private:
class BanList
{
public:
std::vector<SteamID> IDList;
std::vector<Game::netIP_t> IPList;
};
static std::mutex AccessMutex;
static BanList LoadBans();
2016-08-15 10:40:30 -04:00
};
}