home · contact · privacy
In TUI ignore confirmations of anything but the nickname field. master
authorChristian Heller <c.heller@plomlompom.de>
Thu, 14 Aug 2025 10:29:01 +0000 (12:29 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 14 Aug 2025 10:29:01 +0000 (12:29 +0200)
ircplom/client_tui.py

index aa3b2d81dcb42e8dd7a8a4d590700b2059e052f7..d568a6ce3c3fb7680b9f5ec2923169ac1c28a99a 100644 (file)
@@ -176,7 +176,8 @@ class _ClientWindowsManager:
         'Apply settings in kwargs, follow representation update triggers.'
         changes = self._db.set(key, value, confirmed)
         for i, t in enumerate((('', value), ('confirmation of ', confirmed))):
-            if changes[i]:
+            if changes[i] and (i == 0  # re confirms only care about nickname
+                               or key == 'nickname'):
                 announcement = f'changing {t[0]}{key} to:'
                 if isinstance(t[1], list):
                     self.log(announcement, scope=scope)