Fix message hooks

This commit is contained in:
Némunaire 2012-08-22 21:52:49 +02:00
commit 68c88fc864
3 changed files with 8 additions and 6 deletions

View file

@ -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))
##########################
# #