fix: display names can have spaces now. closes #6

This commit is contained in:
missytake 2023-10-09 09:36:50 +02:00
parent 2bd39b5fdc
commit 91205e7162

View file

@ -65,7 +65,9 @@ class RelayPlugin:
if arguments[0] == "/set_name": if arguments[0] == "/set_name":
self.reply( self.reply(
message.chat, message.chat,
set_display_name(self.account, arguments[1]), set_display_name(
self.account, message.text.split("/set_name ")[1]
),
quote=message, quote=message,
) )
if arguments[0] == "/set_avatar": if arguments[0] == "/set_avatar":