Core/Battle.net: Prevent joining invalid/offline realms

This commit is contained in:
Shauren
2014-05-31 18:19:53 +02:00
parent a078c1555c
commit cc748e2ba4

View File

@@ -451,7 +451,7 @@ bool Battlenet::Socket::HandleRealmJoinRequest(PacketHeader& header, BitStream&
RealmJoinResult result;
Realm const* realm = sRealmList->GetRealm(join.Realm);
if (!realm)
if (!realm || realm->flag & (REALM_FLAG_INVALID | REALM_FLAG_OFFLINE))
{
Send(result);
return true;