Core/PacketIO: Fixed CMSG_QUERY_REALM_NAME not being handled and not sending any responses

Port From (https://github.com/TrinityCore/TrinityCore/commit/7f8a932b8bfa345ab8a0647125e033883f4a3ab8)
This commit is contained in:
Hondacrx
2024-09-26 12:58:05 -04:00
parent 24724077dc
commit 2aa3487997
+3 -1
View File
@@ -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);
}
}
}