Actually save blacklist setting when reenabling a module

This commit is contained in:
jesopo 2019-05-25 12:36:07 +01:00
parent 1fb4936fad
commit 30b7c2419d

View file

@ -96,6 +96,7 @@ class Module(ModuleManager.BaseModule):
raise utils.EventError("Module '%s' isn't disabled" % name)
blacklist.remove(name)
self.bot.set_setting("module-blacklist", blacklist)
event["stdout"].write("Module '%s' has been enabled and can now "
"be loaded" % name)