diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 09:49:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 6f8f5472429377833d1c430fa9e9d4ccb9c3a6c3 (patch) | |
tree | d144cea2e7aeb146a47e23bec8ed49a6c72a1401 /tests/unit | |
parent | 2509486c6ae801f284b2eb1e6af29602d46b52a1 (diff) | |
download | weechat-6f8f5472429377833d1c430fa9e9d4ccb9c3a6c3.zip |
irc: use parsed command parameters in "324" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index e991ec958..e903f2e31 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2648,11 +2648,11 @@ TEST(IrcProtocolWithServer, 324) POINTERS_EQUAL(NULL, ptr_server->channels->modes); - /* not enough arguments */ + /* not enough parameters */ RECV(":server 324"); - CHECK_ERROR_ARGS("324", 2, 4); + CHECK_ERROR_PARAMS("324", 0, 2); RECV(":server 324 alice"); - CHECK_ERROR_ARGS("324", 3, 4); + CHECK_ERROR_PARAMS("324", 1, 2); RECV(":server 324 alice #test +nt"); CHECK_NO_MSG; |