Channel configuration UI + disabling bannedJIDs (for now)

This commit is contained in:
John Livingston
2023-09-20 16:43:25 +02:00
parent 501e958c4b
commit f00bac5eb1
7 changed files with 130 additions and 46 deletions

View File

@ -21,7 +21,7 @@ async function sanitizeChannelConfigurationOptions (
const result: ChannelConfigurationOptions = {
bot: _readBoolean(data, 'bot'),
botNickname: _readSimpleInput(data, 'botNickname'),
bannedJIDs: await _readRegExpArray(data, 'bannedJIDs'),
// bannedJIDs: await _readRegExpArray(data, 'bannedJIDs'),
forbiddenWords: await _readRegExpArray(data, 'forbiddenWords')
}

View File

@ -38,7 +38,7 @@ function getDefaultChannelConfigurationOptions (_options: RegisterServerOptions)
return {
bot: false,
botNickname: 'Sepia',
bannedJIDs: [],
// bannedJIDs: [],
forbiddenWords: []
}
}