Initialize an empty module configuration if it has any (sentinel value)

This commit is contained in:
nemunaire 2015-10-13 07:14:47 +02:00
parent aa4050f6cd
commit 68e357d037

View File

@ -48,7 +48,8 @@ class ModuleContext:
module_name in context.modules_configuration):
self.config = context.modules_configuration[module_name]
else:
self.config = None
from nemubot.tools.xmlparser.node import ModuleState
self.config = ModuleState("module")
self.hooks = list()
self.events = list()