mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Owner: Reload module configuration in reload.
Pulled from Limnoria
This commit is contained in:
parent
0b36a29977
commit
02a2a056a4
@ -458,6 +458,8 @@ class Owner(callbacks.Plugin):
|
|||||||
module = plugin.loadPluginModule(name)
|
module = plugin.loadPluginModule(name)
|
||||||
if hasattr(module, 'reload') and 'x' in locals():
|
if hasattr(module, 'reload') and 'x' in locals():
|
||||||
module.reload(x)
|
module.reload(x)
|
||||||
|
if hasattr(module, 'config'):
|
||||||
|
reload(module.config)
|
||||||
for callback in callbacks:
|
for callback in callbacks:
|
||||||
callback.die()
|
callback.die()
|
||||||
del callback
|
del callback
|
||||||
|
Loading…
Reference in New Issue
Block a user