Owner: Reload module configuration in reload.

Pulled from Limnoria
This commit is contained in:
Daniel Folkinshteyn 2013-05-03 23:44:27 -04:00
parent 0b36a29977
commit 02a2a056a4

View File

@ -458,6 +458,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