summaryrefslogtreecommitdiff
path: root/src/account-server/account.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-05-15Manage CharacterData using std::unique_ptrThorbjørn Lindeijer1-11/+11
Fixes many memory leaks, but also made it clear that we're very often loading all the character data only to immediately throw it away again, even when most of the time all we really need is the database ID or the name.
2022-08-19Apply C++11 fixitsThorbjørn Lindeijer1-3/+2
modernize-loop-convert modernize-deprecated-headers
2022-08-19Apply C++11 fixitsThorbjørn Lindeijer1-4/+4
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2013-04-11Renamed Character -> CharacterData in the accountserverErik Schilling1-1/+1
2013-01-09Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer1-2/+2
Same thing, but shorter.
2011-03-20General cleanups and code style fixesThorbjørn Lindeijer1-7/+3
A bunch of variables that were continuously requested from the configuration are now members of the AccountHandler. Reviewed-by: Freeyorp
2010-12-29Made the server handle properly the characters slots.Yohann Ferreira1-4/+25
I turned the vector storing character data into a map, keeping the character's slot. Fixed a memleak along the way. Reviewed-by: Crush.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-1/+1
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
2010-02-07Update Copyright date for Manaserv.Bertram1-1/+1
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer1-13/+13
Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
2009-10-03Limit login attempt frequency based on IP addressThorbjørn Lindeijer1-13/+1
The previous method was broken because it set the "last time" to the current time when the client connected. So login would fail when the username and password were sent within a second from connecting, which is not desirable. If I'd have fixed this by setting the "last time" to login time minus one second, then an attacker would just need to reconnect for each login attempt. So now it uses an IP address based approach, where each IP can only try to log in once per second.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
2008-10-21Fixed some compile warnings.Bjørn Lindeijer1-2/+2
2008-09-10* Extended tmw_accounts table with columns for lastlogin and registration ↵Andreas Habel1-0/+10
date. Modified account-server to fill the new columns on registration and login. Recreation of database needed! * Added createIndex function to create indexes on tables.
2007-08-31Tidied up account server.Guillaume Melquiond1-15/+2
2007-08-30Got rid of abstract storage and reference-counted pointers. Fixed lifetime ↵Guillaume Melquiond1-42/+8
of accounts and characters in server memory. Cleaned some code.
2007-08-29Fixed handling of account levels.Guillaume Melquiond1-20/+4
2007-08-27Added support for user commands. Implemented "warp" and "item".Guillaume Melquiond1-92/+2
2007-03-05Added an abstrart base class for characterdata, in order to use the same ↵Rogier Polak1-11/+13
serialize and deserialize functions on both the accountserver and the gameserver.
2007-02-01Added graceful server shutdown, chose some more sane variables names for SQLBjørn Lindeijer1-1/+1
queries and fixed a possible character collision error (patch by Rogier Polak).
2006-12-29Physically split the server into one tmwserv-acount program (account +Guillaume Melquiond1-0/+218
chat + database) and multiple tmwserv-game programs (selected with respect to the maps). Cleaned the repository by moving server-specific source files into dedicated directories.