diff --git a/asmodee.py b/asmodee.py index 3881eea..5cb1f03 100644 --- a/asmodee.py +++ b/asmodee.py @@ -700,11 +700,12 @@ def getMessage(message): return(str(message)) def getUser(message): - match = re.search(r"^(@\w+:[^ :]+)", str(message)) - if match: - return str(match.group()) - else: - return "Quelqu'un" + #match = re.search(r"^(@\w+:[^ :]+)", str(message)) + #if match: + # return str(match.group()) + #else: + # return "Quelqu'un" + return message.sender async def getNick(room, message): # Obtenir le DisplayName à partir du mxid. sender = getUser(message)