home · contact · privacy
Remove debugging windows from LogScope.ALL, thus CONNECTED/DISCONNECTED.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 19 Sep 2025 23:39:13 +0000 (01:39 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 19 Sep 2025 23:39:13 +0000 (01:39 +0200)
ircplom/client_tui.py
test.txt

index 9a5cf8a0a6e3b10087a394d594ee379759f716ae..a922560d83ed10bf6db44d361a4ac84d00fd8719 100644 (file)
@@ -396,7 +396,8 @@ class ClientTui(BaseTui):
         if scope != LogScope.SAME:
             m = self._client_mngrs[kwargs['client_id']]
             if scope == LogScope.ALL:
-                return m.windows
+                return [w for w in m.windows
+                        if w.scope not in {LogScope.SERVER, LogScope.RAW}]
             if scope == LogScope.SERVER:
                 return [m.window(LogScope.SERVER), m.window(LogScope.RAW)]
             if scope == LogScope.CHAT:
index 3bb10c6aa96802aef6d7956b2a52a783d382c9be..d98e2ecae22d465fbf49af6619f416cfeaa973b2 100644 (file)
--- a/test.txt
+++ b/test.txt
@@ -44,7 +44,7 @@
 
 # on /connect init databases, log in new windows
 > /connect foo.bar.baz foo:bar foobarbazquux:baz
-1,2 $ DISCONNECTED
+, $ DISCONNECTED
 1,2 $ isupport cleared
 1,2 $ isupport:CHANTYPES set to: [#&]
 1,2 $ isupport:PREFIX set to: [(ov)@+]
@@ -63,7 +63,7 @@
 1,2 $ port set to: [6697]
 1,2 $ connection_state set to: [connecting]
 1,2 $ connection_state set to: [connected]
-1,2 $ CONNECTED
+, $ CONNECTED
 2 > CAP LS :302
 2 > USER foobarbazquux 0 * :baz
 2 > NICK :foo
 2 < ERROR :Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]
 1,2 $ connection_state set to: [Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]]
 1,2 $ connection_state set to: []
-1,2,3,4,5,6 $ DISCONNECTED
+3,4,5,6 $ DISCONNECTED
 1,2 $ isupport cleared
 1,2 $ isupport:CHANTYPES set to: [#&]
 1,2 $ isupport:PREFIX set to: [(ov)@+]
 # check that (save TUI tests assuming start on window 0, and no 4 yet) on reconnect, all the same effects can be expected
 > /reconnect
 repeat 63:65
-1,2,3,4,5,6 $ CONNECTED
+3,4,5,6 $ CONNECTED
 repeat 66:147
 repeat 159:341