From: Christian Heller Date: Tue, 25 Nov 2025 15:48:25 +0000 (+0100) Subject: Don't use negative indices on Update.full_path, could hit other steps than we expect. X-Git-Url: https://plomlompom.com/repos/task?a=commitdiff_plain;ds=sidebyside;p=ircplom Don't use negative indices on Update.full_path, could hit other steps than we expect. --- 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)]