Core/Battle.net: Prevent joining invalid/offline realms
This commit is contained in:
1 parent
a078c1555c
commit
cc748e2ba4
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user