summaryrefslogtreecommitdiff
path: root/src/account-server/accountclient.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-01-12 12:25:42 +0000
committerDavid Athay <ko2fan@gmail.com>2009-01-12 12:25:42 +0000
commitd1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1 (patch)
tree3cfb22ab8b13fc47284f808d5da37ec2fa97d6a1 /src/account-server/accountclient.cpp
parent83ecbeff8d09b212cddc33b1879a63002fad46c0 (diff)
downloadmanaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.tar.gz
manaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.tar.bz2
manaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.tar.xz
manaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.zip
Added getting IP, and restricting time between logins
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);
+}