From 33a96485eebee6a3c2ee1b79f505e6b6c9ad3274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 30 Nov 2018 12:53:01 +0100 Subject: [PATCH] buffer: Limit the display name to 50 characters. --- matrix/buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/buffer.py b/matrix/buffer.py index 5ba2f03..c70a875 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -945,7 +945,7 @@ class RoomBuffer(object): if (user.user_id.startswith("@_discord_") or user.user_id.startswith("@_slack_")): if user.display_name: - short_name = user.display_name + short_name = user.display_name[0:50] elif user.user_id.startswith("@freenode_"): short_name = shorten_sender(user.user_id[9:])