correction biere

This commit is contained in:
nemesis 2025-11-12 00:22:16 +01:00
parent 549f91b92c
commit 085c8073cf

View file

@ -700,12 +700,15 @@ 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:
try:
return message.sender
except:
return "Quelqu'un"
async def getNick(room, message): # Obtenir le DisplayName à partir du mxid.
sender = getUser(message)