mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
tests: add tests on IRC message 337
This commit is contained in:
@@ -3564,7 +3564,8 @@ TEST(IrcProtocolWithServer, 221)
|
||||
* 319: whois (channels)
|
||||
* 320: whois (identified user)
|
||||
* 326: whois (has oper privs)
|
||||
* 335: is a bot on
|
||||
* 335: whois (is a bot on)
|
||||
* 337: whois ((is hiding idle time)
|
||||
* 378: whois (connecting from)
|
||||
* 379: whois (using modes)
|
||||
* 671: whois (secure connection)
|
||||
@@ -3623,6 +3624,10 @@ TEST(IrcProtocolWithServer, whois_nick_msg)
|
||||
CHECK_ERROR_PARAMS("335", 0, 2);
|
||||
RECV(":server 335 alice");
|
||||
CHECK_ERROR_PARAMS("335", 1, 2);
|
||||
RECV(":server 337");
|
||||
CHECK_ERROR_PARAMS("337", 0, 2);
|
||||
RECV(":server 337 alice");
|
||||
CHECK_ERROR_PARAMS("337", 1, 2);
|
||||
RECV(":server 378");
|
||||
CHECK_ERROR_PARAMS("378", 0, 2);
|
||||
RECV(":server 378 alice");
|
||||
@@ -3689,6 +3694,10 @@ TEST(IrcProtocolWithServer, whois_nick_msg)
|
||||
CHECK_SRV("--", "[bob] is a bot", "irc_335,irc_numeric,log3");
|
||||
RECV(":server 335 alice bob");
|
||||
CHECK_SRV("--", "bob", "irc_335,irc_numeric,log3");
|
||||
RECV(":server 337 alice bob :is hiding their idle time");
|
||||
CHECK_SRV("--", "[bob] is hiding their idle time", "irc_337,irc_numeric,log3");
|
||||
RECV(":server 337 alice bob");
|
||||
CHECK_SRV("--", "bob", "irc_337,irc_numeric,log3");
|
||||
RECV(":server 378 alice bob");
|
||||
CHECK_SRV("--", "bob", "irc_378,irc_numeric,log3");
|
||||
RECV(":server 378 alice bob :connecting from");
|
||||
|
||||
Reference in New Issue
Block a user