diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-15 21:12:32 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-15 21:12:32 +0100 |
commit | cfa2239db52111831f35d33a8f32ee96c00dedc2 (patch) | |
tree | 480c019a855bf862285ff8234816b457469bd69b /tests/unit/plugins | |
parent | 6abd989dd7b2be6eb9bb194029079d90a1eaeca5 (diff) | |
download | weechat-cfa2239db52111831f35d33a8f32ee96c00dedc2.zip |
irc: update message with number of nicks when joining a channel
Changed:
- "N voices" to "N voiced"
- "N normals" to "N regular"
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index f248905f2..c5611e337 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -3650,33 +3650,43 @@ TEST(IrcProtocolWithServer, 366) CHECK_ERROR_PARAMS("366", 2, 3); RECV(":server 366 alice #test end"); - CHECK_CHAN("-- Channel #test: 1 nick (0 ops, 0 voices, 1 normal)"); + CHECK_CHAN("-- Channel #test: 1 nick (0 ops, 0 voiced, 1 regular)"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 1 nick (0 ops, 0 voices, 1 normal)"); + CHECK_CHAN("-- Channel #test: 1 nick (0 ops, 0 voiced, 1 regular)"); RECV(":server 353 alice = #test :bob"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 2 nicks (0 ops, 0 voices, 2 normals)"); + CHECK_CHAN("-- Channel #test: 2 nicks (0 ops, 0 voiced, 2 regular)"); RECV(":server 353 alice = #test :@carol"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 3 nicks (1 op, 0 voices, 2 normals)"); + CHECK_CHAN("-- Channel #test: 3 nicks (1 op, 0 voiced, 2 regular)"); RECV(":server 353 alice = #test :+dan!user@host"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 4 nicks (1 op, 1 voice, 2 normals)"); + CHECK_CHAN("-- Channel #test: 4 nicks (1 op, 1 voiced, 2 regular)"); RECV(":server 353 alice = #test :@evans"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 5 nicks (2 ops, 1 voice, 2 normals)"); + CHECK_CHAN("-- Channel #test: 5 nicks (2 ops, 1 voiced, 2 regular)"); RECV(":server 353 alice = #test :+fred"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 6 nicks (2 ops, 2 voices, 2 normals)"); + CHECK_CHAN("-- Channel #test: 6 nicks (2 ops, 2 voiced, 2 regular)"); RECV(":server 353 alice = #test :greg"); RECV(":server 366 alice #test :End of /NAMES list"); - CHECK_CHAN("-- Channel #test: 7 nicks (2 ops, 2 voices, 3 normals)"); + CHECK_CHAN("-- Channel #test: 7 nicks (2 ops, 2 voiced, 3 regular)"); + + RECV(":server 005 alice " IRC_MSG_005 " :are supported"); + + RECV(":server 353 alice = #test :%harry"); + RECV(":server 366 alice #test :End of /NAMES list"); + CHECK_CHAN("-- Channel #test: 8 nicks (2 ops, 1 halfop, 2 voiced, 3 regular)"); + + RECV(":server 353 alice = #test :%ian"); + RECV(":server 366 alice #test :End of /NAMES list"); + CHECK_CHAN("-- Channel #test: 9 nicks (2 ops, 2 halfops, 2 voiced, 3 regular)"); /* channel not found */ RECV(":server 366 alice #xyz end"); |