Add the ability to talk with other nemubot over DCC

This commit is contained in:
Némunaire 2012-08-31 05:21:19 +02:00
commit a2d9757d06
8 changed files with 350 additions and 200 deletions

View file

@ -214,11 +214,11 @@ def register_hooks(module, context, prompt):
# Register legacy hooks
if hasattr(module, "parseanswer"):
context.hooks.add_hook(context.hooks.cmd_default, Hook(module.parseanswer))
context.hooks.add_hook("cmd_default", Hook(module.parseanswer))
if hasattr(module, "parseask"):
context.hooks.add_hook(context.hooks.ask_default, Hook(module.parseask))
context.hooks.add_hook("ask_default", Hook(module.parseask))
if hasattr(module, "parselisten"):
context.hooks.add_hook(context.hooks.msg_default, Hook(module.parselisten))
context.hooks.add_hook("msg_default", Hook(module.parselisten))
##########################
# #