1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

irc: use parsed command parameters in "331" command callback

This commit is contained in:
Sébastien Helleu
2021-10-16 10:14:15 +02:00
parent a5e470a16a
commit de567aa1d3
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -2787,11 +2787,11 @@ TEST(IrcProtocolWithServer, 331)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 331");
CHECK_ERROR_ARGS("331", 2, 4);
CHECK_ERROR_PARAMS("331", 0, 2);
RECV(":server 331 alice");
CHECK_ERROR_ARGS("331", 3, 4);
CHECK_ERROR_PARAMS("331", 1, 2);
RECV(":server 331 alice #test");
CHECK_CHAN("-- No topic set for channel #test");