summaryrefslogtreecommitdiff
path: root/src/account-server/accountclient.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-17 12:54:20 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-17 12:54:20 +0100
commit2f28f585b12880d3cddab9d634fedff2f5954485 (patch)
tree370433972f687616fad54dfbe0ab11bda7db1aff /src/account-server/accountclient.cpp
parentba6a9e534cfab2ecab6e120af4ab6ae11aee26c4 (diff)
parentd1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1 (diff)
downloadmanaserv-2f28f585b12880d3cddab9d634fedff2f5954485.tar.gz
manaserv-2f28f585b12880d3cddab9d634fedff2f5954485.tar.bz2
manaserv-2f28f585b12880d3cddab9d634fedff2f5954485.tar.xz
manaserv-2f28f585b12880d3cddab9d634fedff2f5954485.zip
Merge branch 'master' of git@gitorious.org:tmwserv/mainline
Diffstat (limited to 'src/account-server/accountclient.cpp')
-rw-r--r--src/account-server/accountclient.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/account-server/accountclient.cpp b/src/account-server/accountclient.cpp
index 3b9f35e8..18eab583 100644
--- a/src/account-server/accountclient.cpp
+++ b/src/account-server/accountclient.cpp
@@ -26,6 +26,7 @@ AccountClient::AccountClient(ENetPeer *peer):
status(CLIENT_LOGIN),
mAccount(NULL)
{
+ time(&lastLoginAttempt);
}
AccountClient::~AccountClient()
@@ -44,3 +45,8 @@ void AccountClient::unsetAccount()
delete mAccount;
mAccount = NULL;
}
+
+void AccountClient::updateLoginAttempt()
+{
+ time(&lastLoginAttempt);
+}