summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-14 21:42:47 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commitd8c7cf41b5bee01548243f8d8f611939e27a6fd6 (patch)
tree5b21c0fd063ce3feb8108f5977ca471f855872da /tests/unit/plugins/irc
parent5123483c3360c5c383cefa18854949396f99dd92 (diff)
downloadweechat-d8c7cf41b5bee01548243f8d8f611939e27a6fd6.zip
irc: use parsed command parameters in "notice" command callback
Diffstat (limited to 'tests/unit/plugins/irc')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp6
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 b06577a00..3d8d23ccc 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -1321,11 +1321,11 @@ TEST(IrcProtocolWithServer, notice)
/* not enough arguments */
RECV("NOTICE");
- CHECK_ERROR_ARGS("notice", 1, 3);
+ CHECK_ERROR_PARAMS("notice", 0, 2);
RECV("NOTICE AUTH");
- CHECK_ERROR_ARGS("notice", 2, 3);
+ CHECK_ERROR_PARAMS("notice", 1, 2);
RECV(":bob!user@host NOTICE");
- CHECK_ERROR_ARGS("notice", 2, 3);
+ CHECK_ERROR_PARAMS("notice", 0, 2);
RECV(":bob!user@host NOTICE #test");
CHECK_ERROR_PARSE("notice", ":bob!user@host NOTICE #test");
RECV(":bob!user@host NOTICE alice");