Extract hooks

This commit is contained in:
nemunaire 2015-04-17 08:43:03 +02:00 committed by nemunaire
commit 002f2463a3
9 changed files with 104 additions and 76 deletions

View file

@ -19,8 +19,8 @@ def load(CONF, add_hook):
else:
URL_WHOIS = URL_WHOIS % (urllib.parse.quote(CONF.getNode("whoisxmlapi")["username"]), urllib.parse.quote(CONF.getNode("whoisxmlapi")["password"]))
from nemubot.hooks.messagehook import MessageHook
add_hook("cmd_hook", MessageHook(cmd_whois, "netwhois"))
import nemubot.hooks
add_hook("cmd_hook", nemubot.hooks.Message(cmd_whois, "netwhois"))
def extractdate(str):