Legacy hooks now need to be explicitely declared

This commit is contained in:
nemunaire 2014-08-28 18:05:21 +02:00
commit 4b9a6305d4
7 changed files with 10 additions and 2 deletions

View file

@ -82,6 +82,7 @@ def cmd_age(msg):
" Quand est-il né ?" % name, msg.channel, msg.nick)
return True
@hook("ask_default")
def parseask(msg):
res = re.match(r"^(\S+)\s*('s|suis|est|is|was|were)?\s+(birthday|geburtstag|née? |nee? le|born on).*$", msg.content, re.I)
if res is not None: