* Auth/Battle.net Added missing build check to JoinRequest handler

* Core/Commands: Battle.net account command changesisting accounts

(6584995c11a02478671656ea6955db7a645b57ce)
(0c27ffaa49c7e3e6880051ac74581cae51d83351)
This commit is contained in:
Shauren authored and funjoker committed 2019-10-08 15:26:06 +02:00
1 parent 3640c11096
commit e596504d93
13 files changed
+266 -34

No files matched your search

+1 -1
View File
@@ -472,7 +472,7 @@ void Battlenet::Session::HandleJoinRequestV2(WoWRealm::JoinRequestV2 const& join
{
WoWRealm::JoinResponseV2* joinResponse = new WoWRealm::JoinResponseV2();
Realm const* realm = sBNetRealmList->GetRealm(joinRequest.Realm);
if (!realm || realm->Flags & (REALM_FLAG_VERSION_MISMATCH | REALM_FLAG_OFFLINE))
if (!realm || realm->Flags & (REALM_FLAG_VERSION_MISMATCH | REALM_FLAG_OFFLINE) || realm->Build != _build)
{
joinResponse->Response = WoWRealm::JoinResponseV2::FAILURE;
AsyncWrite(joinResponse);