summaryrefslogtreecommitdiff
path: root/src/net/ea/loginhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-03 12:40:52 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-03 16:47:11 -0600
commit0269b1f766a4e9e8ded91505855cff58c18086e2 (patch)
treec557c4c189bb536ab5ef7b8642011fe4f1da4eff /src/net/ea/loginhandler.cpp
parenteb22b66b0821e49ed550d30d20d9db5af535e6a3 (diff)
downloadmana-0269b1f766a4e9e8ded91505855cff58c18086e2.tar.gz
mana-0269b1f766a4e9e8ded91505855cff58c18086e2.tar.bz2
mana-0269b1f766a4e9e8ded91505855cff58c18086e2.tar.xz
mana-0269b1f766a4e9e8ded91505855cff58c18086e2.zip
Do some more post-merge cleanup
Fixes a few more bugs
Diffstat (limited to 'src/net/ea/loginhandler.cpp')
-rw-r--r--src/net/ea/loginhandler.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index d2e2adc0..de52bfa3 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -35,13 +35,12 @@
#include "utils/gettext.h"
#include "utils/stringutils.h"
-Worlds worlds;
-
Net::LoginHandler *loginHandler;
namespace EAthena {
extern Token netToken;
extern ServerInfo charServer;
+extern Worlds worlds;
LoginHandler::LoginHandler()
{
@@ -212,10 +211,14 @@ void LoginHandler::disconnect()
void LoginHandler::loginAccount(LoginData *loginData)
{
- mLoginData = loginData;
sendLoginRegister(loginData->username, loginData->password);
}
+void LoginHandler::logout()
+{
+ // TODO
+}
+
void LoginHandler::changeEmail(const std::string &email)
{
// TODO
@@ -242,8 +245,6 @@ void LoginHandler::chooseServer(unsigned int server)
void LoginHandler::registerAccount(LoginData *loginData)
{
- mLoginData = loginData;
-
std::string username = loginData->username;
username.append((netToken.sex == GENDER_FEMALE) ? "_F" : "_M");