diff options
| author | EuAndreh <eu@euandre.org> | 2026-04-26 16:21:30 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2026-04-26 16:21:30 -0300 |
| commit | e4a3a71f79a5993341c0f92ac46a36d4e83ffd9a (patch) | |
| tree | dab171d3ed495bd2b0da82e98edcf60bf8f109c8 /tests | |
| parent | Forward client tags through PRIVMSG to recipients (diff) | |
| download | papod-e4a3a71f79a5993341c0f92ac46a36d4e83ffd9a.tar.gz papod-e4a3a71f79a5993341c0f92ac46a36d4e83ffd9a.tar.xz | |
Track unregistered connections and honor MODE -o
Add :n-unreg counter on the components map: incremented when a
client connects, decremented when it registers or disconnects.
LUSERS now reports the real unregistered count from this counter
(previously always 0 because unregistered clients are not in
:clients).
Also handle the 'o' character in user-mode setting so MODE <self>
-o actually clears :oper?, fixing the LuserOpers oper-count test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/integration.clj | 3 | ||||
| -rw-r--r-- | tests/unit.clj | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/integration.clj b/tests/integration.clj index bee3f23..7b20575 100644 --- a/tests/integration.clj +++ b/tests/integration.clj @@ -51,7 +51,8 @@ :chan-limits (atom {}) :invites (atom {}) :whowas (atom []) - :max-users (atom 0)})) + :max-users (atom 0) + :n-unreg (atom 0)})) (defn- make-client "Creates a simulated client connection using piped streams. diff --git a/tests/unit.clj b/tests/unit.clj index c398350..687c91f 100644 --- a/tests/unit.clj +++ b/tests/unit.clj @@ -117,7 +117,8 @@ :chan-limits (atom {}) :invites (atom {}) :whowas (atom []) - :max-users (atom 0)}))) + :max-users (atom 0) + :n-unreg (atom 0)}))) (defn test-network! [conn] |
