home · contact · privacy
Fix renaming logging "forgetting" old name.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 13:26:41 +0000 (15:26 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 13:26:41 +0000 (15:26 +0200)
ircplom/client_tui.py

index 8fea54b384a7eca75320c9c8803d3ae70607cf18..98ff459ec9067d659db83bed4bf89f85b2266970 100644 (file)
@@ -232,10 +232,11 @@ class _UpdatingUser(_UpdatingNode, NickUserHost):
             return super().set_and_check_for_change(update)
         if super().set_and_check_for_change(update):
             scope = self._scope(update.path)
-            msg = f'RAW:{self} '
+            msg = f'RAW: '
             if update.path[-1] == 'nick':
-                return scope, msg + f'renames {update.value}'
+                return scope, msg + f'{self.prev} renames {update.value}'
             if update.path[-1] == 'exit_msg' and update.value:
+                msg += f'{self}'
                 msg += 'quits' if update.value[0] == 'Q' else 'parts'
                 if len(update.value) > 1:
                     msg += ': ' + update.value[1:]