summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-15 20:00:43 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit74ceaa1a6882d777909822a4b8334c769127d70f (patch)
treecc434d1f30e42c0e311418f8ba06ddc7163ea493 /tests/unit
parent12a4519448b1dec527a5811580c936d8e6c8c669 (diff)
downloadweechat-74ceaa1a6882d777909822a4b8334c769127d70f.zip
irc: use parsed command parameters in "301" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 1dafc9469..e8df0487d 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2264,9 +2264,9 @@ TEST(IrcProtocolWithServer, 301)
RECV(":bob!user@host PRIVMSG alice :hi Alice!");
CHECK_PV("bob", "bob hi Alice!");
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 301");
- CHECK_ERROR_ARGS("301", 2, 3);
+ CHECK_ERROR_PARAMS("301", 0, 1);
POINTERS_EQUAL(NULL, ptr_server->channels->away_message);