1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

irc: add count for all nick modes in output of /names (closes #97)

This commit is contained in:
Sébastien Helleu
2023-08-26 18:57:21 +02:00
parent 42c925b672
commit dd0c20f6b6
21 changed files with 414 additions and 324 deletions
@@ -5009,6 +5009,8 @@ TEST(IrcProtocolWithServer, 354)
/*
* Tests functions:
* irc_protocol_get_string_channel_nicks
* irc_protocol_get_string_channel_nicks_count
* irc_protocol_cb_366 (end of /names list)
*/
@@ -5075,6 +5077,29 @@ TEST(IrcProtocolWithServer, 366)
"Channel #test: 9 nicks (2 ops, 2 halfops, 2 voiced, 3 regular)",
"irc_366,irc_numeric,log3");
RECV(":server 005 alice PREFIX=(qaohv)~&@%+ :are supported");
RECV(":server 353 alice = #test :~jessica");
RECV(":server 366 alice #test :End of /NAMES list");
CHECK_CHAN(
"--",
"Channel #test: 10 nicks (1 +q, 0 +a, 2 ops, 2 halfops, 2 voiced, 3 regular)",
"irc_366,irc_numeric,log3");
RECV(":server 353 alice = #test :&karl");
RECV(":server 366 alice #test :End of /NAMES list");
CHECK_CHAN(
"--",
"Channel #test: 11 nicks (1 +q, 1 +a, 2 ops, 2 halfops, 2 voiced, 3 regular)",
"irc_366,irc_numeric,log3");
RECV(":server 353 alice = #test :&mike");
RECV(":server 366 alice #test :End of /NAMES list");
CHECK_CHAN(
"--",
"Channel #test: 12 nicks (1 +q, 2 +a, 2 ops, 2 halfops, 2 voiced, 3 regular)",
"irc_366,irc_numeric,log3");
/* channel not found */
RECV(":server 366 alice #xyz end");
CHECK_SRV("--", "#xyz: end", "irc_366,irc_numeric,log3");