From 18125f4177deaeea516771718b05cd4f74ee2e60 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 25 Apr 2023 00:16:21 +0200 Subject: [PATCH] title case user_name --- matrix_pygmalion_bot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_pygmalion_bot/core.py b/matrix_pygmalion_bot/core.py index 22ca54c..a07f4f5 100644 --- a/matrix_pygmalion_bot/core.py +++ b/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"