diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-14 21:42:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | d8c7cf41b5bee01548243f8d8f611939e27a6fd6 (patch) | |
tree | 5b21c0fd063ce3feb8108f5977ca471f855872da /tests/unit/plugins/irc | |
parent | 5123483c3360c5c383cefa18854949396f99dd92 (diff) | |
download | weechat-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.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 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"); |