Browse Source

title case user_name

master
Hendrik Langer 2 years ago
parent
commit
18125f4177
  1. 2
      matrix_pygmalion_bot/core.py

2
matrix_pygmalion_bot/core.py

@ -99,7 +99,7 @@ class Callbacks(object):
if not (event.sender == self.bot.owner or chat_message.is_own_message):
return
self.bot.user_name = room.user_name(event.sender)
self.bot.user_name = room.user_name(event.sender).title()
if self.bot.user_name.casefold() == self.bot.name.casefold():
self.bot.user_name = "You"

Loading…
Cancel
Save