From a82b43a366dde34519db2c93c05460fefb7e8af3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 25 Nov 2025 16:48:25 +0100 Subject: [PATCH] Don't use negative indices on Update.full_path, could hit other steps than we expect. --- src/ircplom/client_tui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircplom/client_tui.py b/src/ircplom/client_tui.py index 9c47302..4080f2b 100644 --- a/src/ircplom/client_tui.py +++ b/src/ircplom/client_tui.py @@ -297,7 +297,7 @@ class _UpdatingChannel(_UpdatingNode, Channel): return tuple(id_ for id_ in base if id_ not in excluder) super().recursive_set_and_report_change(update) - if update.full_path[-2] == 'prefixes' and self.user_ids: + if update.full_path[2] == 'prefixes' and self.user_ids: update.results += [ (_LogScope.CHAT, [f'NICK:{id_}', f': gains {update.key}']) for id_ in diff_in(update.value, update.old_value)] -- 2.30.2