Owner: Reload module configuration in @reload.

This commit is contained in:
Valentin Lorentz 2012-09-17 17:49:13 +02:00
parent 4eb674843e
commit 0267f15a45

View File

@ -461,6 +461,8 @@ class Owner(callbacks.Plugin):
module = plugin.loadPluginModule(name)
if hasattr(module, 'reload') and 'x' in locals():
module.reload(x)
if hasattr(module, 'config'):
reload(module.config)
for callback in callbacks:
callback.die()
del callback