diff options
author | Andreas Habel <mail@exceptionfault.de> | 2008-09-15 10:43:11 +0000 |
---|---|---|
committer | Andreas Habel <mail@exceptionfault.de> | 2008-09-15 10:43:11 +0000 |
commit | a613c53609185c436dcdca7eae3221b792ad523d (patch) | |
tree | 8a367e8663fa96c955914f3179e80a80e4523be7 /src/account-server/main-account.cpp | |
parent | bfc0c10184442fba0b53e0aaafcf2532610e5cd7 (diff) | |
download | manaserv-a613c53609185c436dcdca7eae3221b792ad523d.tar.gz manaserv-a613c53609185c436dcdca7eae3221b792ad523d.tar.bz2 manaserv-a613c53609185c436dcdca7eae3221b792ad523d.tar.xz manaserv-a613c53609185c436dcdca7eae3221b792ad523d.zip |
* Added doxygen file, docu will be generated under docs/api/html
* Added table definition "tmw_world_states" to store map and world-specific variables
* Extended DALStorage to set and get those new variables
* Applied Kess's diff file from mantis #424 with modifications for PostgreSQL support
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(); |