From 70d577b89e7d474a3e5004b4be58a030fb564251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sat, 15 Sep 2018 23:26:36 +0200 Subject: [PATCH] buffer: Fix off by one error for freenode display names. --- matrix/buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/buffer.py b/matrix/buffer.py index 003e05a..f100f84 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -829,7 +829,7 @@ class RoomBuffer(object): if user.display_name: short_name = user.display_name elif user.user_id.startswith("@freenode_"): - short_name = shorten_sender(user.user_id[10:]) + short_name = shorten_sender(user.user_id[9:]) # TODO make this configurable if not short_name or short_name in self.displayed_nicks.values():