Add the ability to talk with other nemubot over DCC
This commit is contained in:
parent
30da270557
commit
a2d9757d06
8 changed files with 350 additions and 200 deletions
|
|
@ -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))
|
||||
|
||||
##########################
|
||||
# #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue