From 2aa34879974b3c937c02eb248af992c1f30d8dd8 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Thu, 26 Sep 2024 12:58:05 -0400 Subject: [PATCH] Core/PacketIO: Fixed CMSG_QUERY_REALM_NAME not being handled and not sending any responses Port From (https://github.com/TrinityCore/TrinityCore/commit/7f8a932b8bfa345ab8a0647125e033883f4a3ab8) --- Source/Game/Handlers/QueryHandler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Game/Handlers/QueryHandler.cs b/Source/Game/Handlers/QueryHandler.cs index 87d8b525d..79a62306e 100644 --- a/Source/Game/Handlers/QueryHandler.cs +++ b/Source/Game/Handlers/QueryHandler.cs @@ -324,7 +324,7 @@ namespace Game SendPacket(queryItemTextResponse); } - [WorldPacketHandler(ClientOpcodes.QueryRealmName, Processing = PacketProcessing.Inplace)] + [WorldPacketHandler(ClientOpcodes.QueryRealmName, Status = SessionStatus.Authed, Processing = PacketProcessing.Inplace)] void HandleQueryRealmName(QueryRealmName queryRealmName) { RealmQueryResponse realmQueryResponse = new(); @@ -341,6 +341,8 @@ namespace Game } else realmQueryResponse.LookupState = (byte)ResponseCodes.Failure; + + SendPacket(realmQueryResponse); } } }