Prepare hooks to be used for other things than Message

This commit is contained in:
nemunaire 2014-09-11 21:20:56 +02:00
commit 8c52f75b6a
16 changed files with 171 additions and 136 deletions

View file

@ -28,8 +28,8 @@ def load(context):
else:
URL = URL % CONF.getNode("wrapi")["key"]
from hooks import Hook
add_hook("cmd_hook", Hook(cmd_translate, "translate"))
from hooks.messagehook import MessageHook
add_hook("cmd_hook", MessageHook(cmd_translate, "translate"))
def help_full():