mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Some coding style.
This commit is contained in:
parent
f72a8bc6dc
commit
182cedd3c0
1 changed files with 13 additions and 13 deletions
|
|
@ -466,7 +466,7 @@ bool AuthSocket::_HandleLogonChallenge()
|
||||||
///- Fill the response packet with the result
|
///- Fill the response packet with the result
|
||||||
pkt << (uint8)REALM_AUTH_SUCCESS;
|
pkt << (uint8)REALM_AUTH_SUCCESS;
|
||||||
|
|
||||||
// B may be calculated < 32B so we force minnimal length to 32B
|
// B may be calculated < 32B so we force minimal length to 32B
|
||||||
pkt.append(B.AsByteArray(32), 32); // 32 bytes
|
pkt.append(B.AsByteArray(32), 32); // 32 bytes
|
||||||
pkt << (uint8)1;
|
pkt << (uint8)1;
|
||||||
pkt.append(g.AsByteArray(), 1);
|
pkt.append(g.AsByteArray(), 1);
|
||||||
|
|
@ -474,7 +474,7 @@ bool AuthSocket::_HandleLogonChallenge()
|
||||||
pkt.append(N.AsByteArray(), 32);
|
pkt.append(N.AsByteArray(), 32);
|
||||||
pkt.append(s.AsByteArray(), s.GetNumBytes());// 32 bytes
|
pkt.append(s.AsByteArray(), s.GetNumBytes());// 32 bytes
|
||||||
pkt.append(unk3.AsByteArray(), 16);
|
pkt.append(unk3.AsByteArray(), 16);
|
||||||
pkt << (uint8)0; // Added in 1.12.x client branch
|
pkt << (uint8)0; // security flags (0x0...0x04)
|
||||||
|
|
||||||
uint8 secLevel = (*result)[4].GetUInt8();
|
uint8 secLevel = (*result)[4].GetUInt8();
|
||||||
_accountSecurityLevel = secLevel <= SEC_ADMINISTRATOR ? AccountTypes(secLevel) : SEC_ADMINISTRATOR;
|
_accountSecurityLevel = secLevel <= SEC_ADMINISTRATOR ? AccountTypes(secLevel) : SEC_ADMINISTRATOR;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue