From 04be5a8764df750777fed065e0622298c9d7bc2f Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 25 May 2021 20:11:37 -0700 Subject: [PATCH] Support short names for OFTC bridge --- matrix/buffer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix/buffer.py b/matrix/buffer.py index 7cc305e..8501ed5 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -1084,6 +1084,8 @@ class RoomBuffer(object): short_name = shorten_sender(user.user_id[9:]) elif user.user_id.startswith("@_ircnet_"): short_name = shorten_sender(user.user_id[8:]) + elif user.user_id.startswith("@_oftc_"): + short_name = shorten_sender(user.user_id[6:]) elif user.user_id.startswith("@gitter_"): short_name = shorten_sender(user.user_id[7:])