mod_muc_moderation

This commit is contained in:
John Livingston
2021-05-11 16:49:49 +02:00
parent a602c7870a
commit 236a9301bc
5 changed files with 161 additions and 1 deletions

View File

@ -120,6 +120,7 @@ class ProsodyConfigContent {
this.global.set('pidfile', this.paths.pid)
this.global.set('plugin_paths', [this.paths.modules])
this.global.set('data_path', this.paths.data)
this.global.set('default_storage', 'internal')
this.global.set('storage', 'internal')
this.global.set('modules_enabled', [
@ -222,6 +223,9 @@ class ProsodyConfigContent {
this.muc.set('log_all_rooms', true)
this.muc.set('muc_log_expires_after', duration)
this.muc.set('muc_log_cleanup_interval', 4 * 60 * 60)
// We can also use mod_muc_moderation
this.muc.add('modules_enabled', 'muc_moderation')
}
setLog (level: ProsodyLogLevel, syslog?: ProsodyLogLevel[]): void {