From 91205e71627e597391cc5c992fb4270a792721ef Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 9 Oct 2023 09:36:50 +0200 Subject: [PATCH] fix: display names can have spaces now. closes #6 --- src/teams_bot/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/teams_bot/bot.py b/src/teams_bot/bot.py index efde135..3939c3a 100644 --- a/src/teams_bot/bot.py +++ b/src/teams_bot/bot.py @@ -65,7 +65,9 @@ class RelayPlugin: if arguments[0] == "/set_name": self.reply( message.chat, - set_display_name(self.account, arguments[1]), + set_display_name( + self.account, message.text.split("/set_name ")[1] + ), quote=message, ) if arguments[0] == "/set_avatar":