Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add antispam #30

Merged
merged 7 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/game/Anticheat/Anticheat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ AnticheatManager* GetAnticheatLib()
#include "World.h"
#include "WorldSession.h"

#include "Antispam/Antispam.h"
#include "MovementAnticheat/MovementAnticheat.h"
#include "WardenAnticheat/Warden.hpp"
#include "WardenAnticheat/WardenScanMgr.hpp"
Expand All @@ -50,6 +51,10 @@ AnticheatManager::~AnticheatManager()

void AnticheatManager::LoadAnticheatData()
{
sLog.Out(LOG_ANTICHEAT, LOG_LVL_MINIMAL, "");
sLog.Out(LOG_ANTICHEAT, LOG_LVL_MINIMAL, "Loading antispam system ...");
sAntispam->loadConfig();

sLog.Out(LOG_ANTICHEAT, LOG_LVL_MINIMAL, "");
sLog.Out(LOG_ANTICHEAT, LOG_LVL_MINIMAL, "Loading warden checks...");
sWardenScanMgr.LoadFromDB();
Expand Down
5 changes: 3 additions & 2 deletions src/game/Anticheat/Anticheat.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ class AnticheatManager
~AnticheatManager();
void LoadAnticheatData();

Warden * CreateWardenFor(WorldSession* client, BigNumber* K);
Warden* CreateWardenFor(WorldSession* client, BigNumber* K);
MovementAnticheat* CreateAnticheatFor(Player* player);

AntispamInterface* GetAntispam() const;

void StartWardenUpdateThread();
void StopWardenUpdateThread();
void UpdateWardenSessions();
Expand All @@ -106,7 +108,6 @@ class AnticheatManager

public:
// Antispam wrappers
AntispamInterface* GetAntispam() const { return nullptr; }
bool CanWhisper(AccountPersistentData const& data, MasterPlayer* player) { return true; }

static AnticheatManager* instance();
Expand Down
Loading
Loading