1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 11:36:08 +02:00
parent de567aa1d3
commit 3a5a2abeea
2 changed files with 21 additions and 18 deletions
+3 -3
View File
@@ -2810,11 +2810,11 @@ TEST(IrcProtocolWithServer, 332)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 332");
CHECK_ERROR_ARGS("332", 2, 4);
CHECK_ERROR_PARAMS("332", 0, 2);
RECV(":server 332 alice");
CHECK_ERROR_ARGS("332", 3, 4);
CHECK_ERROR_PARAMS("332", 1, 2);
POINTERS_EQUAL(NULL, ptr_server->channels->topic);