home · contact · privacy
Fix join messages omitting username, host.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 19 Sep 2025 14:44:11 +0000 (16:44 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 19 Sep 2025 14:44:11 +0000 (16:44 +0200)
ircplom/client_tui.py
test.txt

index 3e577f45b782048dafd4bbe79577b0eb5f487adf..9bddf1eaaaf012d9842495cfc6de42b92f28c0d6 100644 (file)
@@ -356,7 +356,7 @@ class _ClientWindowsManager:
                     if transform in {'NICKS', 'NUHS'}:
                         nuhs = (self.db.users[id_] for id_ in item)
                         item = ', '.join([
-                            (str(nuh) if transform == 'nuhs' else nuh.nick)
+                            (str(nuh) if transform == 'NUHS' else nuh.nick)
                             for nuh in nuhs])
                     self.log(f'{verb}: {item}', **log_kwargs)
             elif isinstance(value, str) and value.startswith('RAW:'):
index 1d352a1a4938411501f2f028f80f14eeadc70898..5dacdb0301866116e959dd2b66276ff0e6077856 100644 (file)
--- a/test.txt
+++ b/test.txt
 1,2 $ users:2:nick set to: [baz]
 1,2 $ users:2:user set to: [~baz]
 1,2 $ users:2:host set to: [baz.baz]
-4 $ joining: baz
+4 $ joining: baz!~baz@baz.baz
 
 # handle non-self renaming
 2 < :baz!~baz@baz.baz NICK :bazbaz
 1,2 $ users:3:nick set to: [bazbaz]
 1,2 $ users:3:user set to: [~baz]
 1,2 $ users:3:host set to: [baz.baz]
-4 $ joining: bazbaz
+4 $ joining: bazbaz!~baz@baz.baz
 
 # handle non-self QUIT
 2 < :bazbaz!~baz@baz.baz QUIT :Client Quit