Legacy hooks now need to be explicitely declared
This commit is contained in:
parent
da32ee6490
commit
4b9a6305d4
7 changed files with 10 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue