diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 11:36:08 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 3a5a2abeead301d4454e613ddb30da19781f2284 (patch) | |
tree | 40a4145846a01e1d677e8c0c611006571d3bd12c /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | de567aa1d312bce9e147fa666dd11173b9c2af58 (diff) | |
download | weechat-3a5a2abeead301d4454e613ddb30da19781f2284.zip |
irc: use parsed command parameters in "332" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-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 00241edc2..8a2cd1ed0 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -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); |