/// <summary>Handles the QueryRealms2 packet. Responds by sending LogonRealmEx packet.</summary> /// <param name="packet">The packet.</param> private void OnQueryRealms2(ChatServerPacket packet) { QueryRealms2In fromServer = new QueryRealms2In(packet); LogServer(fromServer.ToString()); if (fromServer.Count == 0) { Fail(FailureArgs.FailureTypes.NoRealmsAvailable, "No realms available"); return; } LogonRealmExOut toServer = new LogonRealmExOut(clientToken, serverToken, fromServer.Realms[0].Title); SendPacket(toServer); }