mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Battle.net: Prevent joining invalid/offline realms
This commit is contained in:
@@ -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