buffer: Don't use the user id for discord and freenode users.
This commit is contained in:
parent
bbfc0d2e7d
commit
08c2d0e113
1 changed files with 8 additions and 0 deletions
|
@ -790,6 +790,14 @@ class RoomBuffer(object):
|
||||||
|
|
||||||
short_name = shorten_sender(user.user_id)
|
short_name = shorten_sender(user.user_id)
|
||||||
|
|
||||||
|
# TODO handle this special case for discord bridge users and
|
||||||
|
# freenode bridge users better
|
||||||
|
if user.user_id.startswith("@_discord_"):
|
||||||
|
if user.display_name:
|
||||||
|
short_name = user.display_name
|
||||||
|
elif user.user_id.startswith("@freenode_"):
|
||||||
|
short_name = shorten_sender(user.user_id[10:])
|
||||||
|
|
||||||
# TODO make this configurable
|
# TODO make this configurable
|
||||||
if not short_name or short_name in self.displayed_nicks.values():
|
if not short_name or short_name in self.displayed_nicks.values():
|
||||||
# Use the full user id, but don't include the @
|
# Use the full user id, but don't include the @
|
||||||
|
|
Loading…
Add table
Reference in a new issue