summaryrefslogtreecommitdiff
path: root/src/account-server/main-account.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-08-28 14:46:37 +0000
committerDavid Athay <ko2fan@gmail.com>2008-08-28 14:46:37 +0000
commit70d580c479c5310c0f7a7efd1a3e7f324cfb99f9 (patch)
treeda31ea41744ae5e86d24a372ba067214e6908dbd /src/account-server/main-account.cpp
parent9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a (diff)
downloadmanaserv-70d580c479c5310c0f7a7efd1a3e7f324cfb99f9.tar.gz
manaserv-70d580c479c5310c0f7a7efd1a3e7f324cfb99f9.tar.bz2
manaserv-70d580c479c5310c0f7a7efd1a3e7f324cfb99f9.tar.xz
manaserv-70d580c479c5310c0f7a7efd1a3e7f324cfb99f9.zip
Added checking for expired bans.
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r--src/account-server/main-account.cpp3
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...");