diff options
Diffstat (limited to 'src/account-server/accountclient.cpp')
-rw-r--r-- | src/account-server/accountclient.cpp | 6 |
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); +} |