From 21dadaa1692e197b763183cbe508d375f00b00ce Mon Sep 17 00:00:00 2001 From: nemunaire Date: Wed, 13 Aug 2014 15:25:29 +0200 Subject: [PATCH] Birthday module: fix regexp string used --- modules/birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/birthday.py b/modules/birthday.py index 9bb172d..aefb6d3 100644 --- a/modules/birthday.py +++ b/modules/birthday.py @@ -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: