Initialize an empty module configuration if it has any (sentinel value)
This commit is contained in:
parent
aa4050f6cd
commit
68e357d037
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ class ModuleContext:
|
||||||
module_name in context.modules_configuration):
|
module_name in context.modules_configuration):
|
||||||
self.config = context.modules_configuration[module_name]
|
self.config = context.modules_configuration[module_name]
|
||||||
else:
|
else:
|
||||||
self.config = None
|
from nemubot.tools.xmlparser.node import ModuleState
|
||||||
|
self.config = ModuleState("module")
|
||||||
|
|
||||||
self.hooks = list()
|
self.hooks = list()
|
||||||
self.events = list()
|
self.events = list()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue