Moving max and default values in constants.

This commit is contained in:
John Livingston
2024-09-11 10:11:18 +02:00
parent 5225257bb5
commit 6f479d26c5
5 changed files with 29 additions and 12 deletions

View File

@ -7,6 +7,10 @@ import type { ChannelConfigurationOptions } from '../../../../shared/lib/types'
import type { ChannelCommonRoomConf } from '../../configuration/bot'
import { RoomChannel } from '../../room-channel'
import { sanitizeChannelConfigurationOptions } from '../../configuration/channel/sanitize'
import {
forbidSpecialCharsDefaultTolerance,
noDuplicateDefaultDelay
} from '../../../../shared/lib/constants'
import * as fs from 'fs'
import * as path from 'path'
@ -47,13 +51,13 @@ function getDefaultChannelConfigurationOptions (_options: RegisterServerOptions)
forbidSpecialChars: {
enabled: false,
reason: '',
tolerance: 0,
tolerance: forbidSpecialCharsDefaultTolerance,
applyToModerators: false
},
noDuplicate: {
enabled: false,
reason: '',
delay: 60,
delay: noDuplicateDefaultDelay,
applyToModerators: false
},
quotes: [],