diff options
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r-- | src/account-server/main-account.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index 0af42775..5bd8a080 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -308,12 +308,15 @@ int main(int argc, char *argv[]) // Dump statistics every 10 seconds. utils::Timer statTimer(10000); + // Check for expired bans every 30 seconds + utils::Timer banTimer(30000); while (running) { AccountClientHandler::process(); GameServerHandler::process(); chatHandler->process(50); if (statTimer.poll()) dumpStatistics(); + if (banTimer.poll()) storage->checkBannedAccounts(); } LOG_INFO("Received: Quit signal, closing down..."); |