Fixed empty module configuration
This commit is contained in:
parent
e83c4091bf
commit
31d93734a6
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,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:
|
||||||
from nemubot.tools.xmlparser.node import ModuleState
|
from nemubot.config.module import Module
|
||||||
self.config = ModuleState("module")
|
self.config = Module(module_name)
|
||||||
|
|
||||||
self.hooks = list()
|
self.hooks = list()
|
||||||
self.events = list()
|
self.events = list()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue