buffer: Limit the display name to 50 characters.
This commit is contained in:
parent
be0aae605f
commit
33a96485ee
1 changed files with 1 additions and 1 deletions
|
@ -945,7 +945,7 @@ class RoomBuffer(object):
|
||||||
if (user.user_id.startswith("@_discord_") or
|
if (user.user_id.startswith("@_discord_") or
|
||||||
user.user_id.startswith("@_slack_")):
|
user.user_id.startswith("@_slack_")):
|
||||||
if user.display_name:
|
if user.display_name:
|
||||||
short_name = user.display_name
|
short_name = user.display_name[0:50]
|
||||||
elif user.user_id.startswith("@freenode_"):
|
elif user.user_id.startswith("@freenode_"):
|
||||||
short_name = shorten_sender(user.user_id[9:])
|
short_name = shorten_sender(user.user_id[9:])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue