Birthday module: fix regexp string used
This commit is contained in:
parent
1464f92c87
commit
21dadaa169
|
@ -87,7 +87,7 @@ def cmd_age(msg):
|
|||
return True
|
||||
|
||||
def parseask(msg):
|
||||
if re.match("^.*(date de naissance|birthday|geburtstag|née? |nee? le|born on).*$", msgl, re.I) is not None:
|
||||
if re.match("^.*(date de naissance|birthday|geburtstag|née? |nee? le|born on).*$", msg.content, re.I) is not None:
|
||||
try:
|
||||
extDate = msg.extractDate()
|
||||
if extDate is None or extDate.year > datetime.now().year:
|
||||
|
|
Loading…
Reference in New Issue