mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't use keyword arguments when initialising modules (#13060)
This commit is contained in:
parent
75fb10ee45
commit
417f4cf40b
1
changelog.d/13060.misc
Normal file
1
changelog.d/13060.misc
Normal file
@ -0,0 +1 @@
|
||||
Don't instantiate modules with keyword arguments.
|
@ -450,7 +450,7 @@ async def start(hs: "HomeServer") -> None:
|
||||
# before we start the listeners.
|
||||
module_api = hs.get_module_api()
|
||||
for module, config in hs.config.modules.loaded_modules:
|
||||
m = module(config=config, api=module_api)
|
||||
m = module(config, module_api)
|
||||
logger.info("Loaded module %s", m)
|
||||
|
||||
load_legacy_spam_checkers(hs)
|
||||
|
Loading…
Reference in New Issue
Block a user