diff options
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r-- | src/account-server/main-account.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index 5bd8a080..c4c451ee 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -143,6 +143,7 @@ static void initialize() storage = new DALStorage; storage->open(); + // --- Initialize the managers // Initialize the slang's and double quotes filter. stringFilter = new StringFilter; @@ -311,6 +312,18 @@ int main(int argc, char *argv[]) // Check for expired bans every 30 seconds utils::Timer banTimer(30000); + // ------------------------------------------------------------------------- + // FIXME: for testing purposes only... + // writing accountserver startup time and svn revision to database as global + // world state variable + const time_t startup = time(NULL); + std::stringstream timestamp; + timestamp << startup; + storage->setWorldStateVar("accountserver_startup", timestamp.str()); + const std::string revision = "$Revision$"; + storage->setWorldStateVar("accountserver_version", revision); + // ------------------------------------------------------------------------- + while (running) { AccountClientHandler::process(); GameServerHandler::process(); |