Remove legacy msg.text
This commit is contained in:
parent
a11ccb2e39
commit
e49312e63e
7 changed files with 38 additions and 17 deletions
|
|
@ -147,7 +147,7 @@ def cmd_nicks(msg):
|
|||
|
||||
@hook.ask()
|
||||
def parseask(msg):
|
||||
res = re.match(r"^(\S+)\s*('s|suis|est|is|was|were)\s+([a-zA-Z0-9_-]{3,8})$", msg.text, re.I)
|
||||
res = re.match(r"^(\S+)\s*('s|suis|est|is|was|were)\s+([a-zA-Z0-9_-]{3,8})$", msg.message, re.I)
|
||||
if res is not None:
|
||||
nick = res.group(1)
|
||||
login = res.group(3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue