Slight update

This commit is contained in:
Toastie 2024-12-27 00:47:23 +13:00
parent 4f265f44e2
commit 93446ca30d
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -280,10 +280,12 @@ public class AdminCommands
foreach (KeyValuePair<ulong, Interviewer.ValidatedInterviewQuestion> interviewRoot in interview)
{
interviewRoot.Value.Validate(ref errors, out int summaryCount, out int summaryMaxLength);
if (summaryCount > 25)
{
errors.Add("A summary cannot contain more than 25 fields, but you have " + summaryCount + " fields in one of your interview branches.");
}
if (summaryMaxLength >= 6000)
{
errors.Add("A summary cannot contain more than 6000 characters, but one of your branches has the possibility of its summary reaching " + summaryMaxLength + " characters.");