buffer: Limit the display name to 50 characters.

This commit is contained in:
Damir Jelić 2018-11-30 12:53:01 +01:00
parent be0aae605f
commit 33a96485ee

View file

@ -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:])