Fix message hooks
This commit is contained in:
parent
db7bb4ad3a
commit
68c88fc864
3 changed files with 8 additions and 6 deletions
|
|
@ -214,7 +214,7 @@ def register_hooks(module, context, prompt):
|
|||
if hasattr(module, "parseask"):
|
||||
context.hooks.add_hook(context.hooks.ask_default, Hook(module.parseask))
|
||||
if hasattr(module, "parselisten"):
|
||||
context.hooks.add_hook(context.hooks.ask_default, Hook(module.parselisten))
|
||||
context.hooks.add_hook(context.hooks.msg_default, Hook(module.parselisten))
|
||||
|
||||
##########################
|
||||
# #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue