use nicer usernames
This commit is contained in:
parent
2e7f25995a
commit
bb9c8615ee
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ async def run(
|
||||||
"""
|
"""
|
||||||
if (client.user_name + ':') in message.body:
|
if (client.user_name + ':') in message.body:
|
||||||
return
|
return
|
||||||
message = f"{ message.sender }: { message.body }"
|
sender = from_room.user_name(message.sender) # Don't look to work
|
||||||
|
if sender is None:
|
||||||
|
sender = ':'.join(message.sender.split(':')[:-1])[1:]
|
||||||
|
message = f"{ sender }: { message.body }"
|
||||||
for to_room in config.rooms:
|
for to_room in config.rooms:
|
||||||
to_room = await client.resolve_room(to_room)
|
to_room = await client.resolve_room(to_room)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue