diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 10:14:15 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | de567aa1d312bce9e147fa666dd11173b9c2af58 (patch) | |
tree | ff0c915385177725e08303374d355ac5b8416a4d /tests/unit | |
parent | a5e470a16a80a95ca396c8023ca4b06e2ae4d86b (diff) | |
download | weechat-de567aa1d312bce9e147fa666dd11173b9c2af58.zip |
irc: use parsed command parameters in "331" 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 12a4f9dde..00241edc2 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -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"); |