Moderation Bot integration WIP:
* Start and stop the bot WIP * Prosody: removing the BOSH module from the global scope (must only be present on relevant virtualhosts) * Some refactoring
This commit is contained in:
@ -10,9 +10,9 @@ import type { RequestPromiseHandler } from '../async'
|
||||
function checkConfigurationEnabledMiddleware (options: RegisterServerOptions): RequestPromiseHandler {
|
||||
return async (req: Request, res: Response, next: NextFunction) => {
|
||||
const settings = await options.settingsManager.getSettings([
|
||||
'disable-configuration'
|
||||
'disable-channel-configuration'
|
||||
])
|
||||
if (!settings['disable-configuration']) {
|
||||
if (!settings['disable-channel-configuration']) {
|
||||
next()
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user