Due to last commit, changes modules to follow new hooks declaration

This commit is contained in:
Némunaire 2012-08-31 05:23:21 +02:00
commit 89206d9a91
5 changed files with 27 additions and 31 deletions

View file

@ -15,8 +15,8 @@ def help_full ():
def load(context):
from hooks import Hook
context.hooks.add_hook(context.hooks.cmd_hook, Hook(cmd_syno, "syno"))
context.hooks.add_hook(context.hooks.cmd_hook, Hook(cmd_syno, "synonyme"))
context.hooks.add_hook("cmd_hook", Hook(cmd_syno, "syno"))
context.hooks.add_hook("cmd_hook", Hook(cmd_syno, "synonyme"))
def cmd_syno(msg):