summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-30 15:30:18 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-30 15:30:18 -0700
commit197f6fedf46c866123ddb37872708baf9bb2dc3f (patch)
tree6494753c9bc2e449c776e65415d1345a7de0eead /src/login
parentde0944f0bcbc3107071293c370833c39f71ab33d (diff)
downloadtmwa-197f6fedf46c866123ddb37872708baf9bb2dc3f.tar.gz
tmwa-197f6fedf46c866123ddb37872708baf9bb2dc3f.tar.bz2
tmwa-197f6fedf46c866123ddb37872708baf9bb2dc3f.tar.xz
tmwa-197f6fedf46c866123ddb37872708baf9bb2dc3f.zip
Finish packet naming
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp
index 82ab89a..a8bc7a0 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -1097,38 +1097,6 @@ void parse_fromchar(Session *s)
break;
}
- // we receive a e-mail creation of an account with a default e-mail (no answer)
- case 0x2715:
- {
- Packet_Fixed<0x2715> fixed;
- rv = recv_fpacket<0x2715, 46>(s, fixed);
- if (rv != RecvResult::Complete)
- break;
-
- AccountId acc = fixed.account_id;
- AccountEmail email = fixed.email;
- if (!e_mail_check(email))
- LOGIN_LOG("Char-server '%s': Attempt to create an e-mail on an account with a default e-mail REFUSED - e-mail is invalid (account: %d, ip: %s)\n"_fmt,
- server[id].name, acc, ip);
- else
- {
- for (AuthData& ad : auth_data)
- {
- if (ad.account_id == acc
- && (ad.email == DEFAULT_EMAIL || !ad.email))
- {
- ad.email = email;
- LOGIN_LOG("Char-server '%s': Create an e-mail on an account with a default e-mail (account: %d, new e-mail: %s, ip: %s).\n"_fmt,
- server[id].name, acc, email, ip);
- goto x2715_out;
- }
- }
- LOGIN_LOG("Char-server '%s': Attempt to create an e-mail on an account with a default e-mail REFUSED - account doesn't exist or e-mail of account isn't default e-mail (account: %d, ip: %s).\n"_fmt,
- server[id].name, acc, ip);
- }
- x2715_out:
- break;
- }
// We receive an e-mail/limited time request, because a player comes back from a map-server to the char-server
case 0x2716:
{