summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-15 21:10:00 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commitf51f3dbe299d817b208c26a8ff4dedccb4465607 (patch)
tree4916e9e90b6173e64fcc1e1d0362d6170449370f /tests
parentefecdf5d450d83ff3a5eb7256791d3d70c87fd1b (diff)
downloadweechat-f51f3dbe299d817b208c26a8ff4dedccb4465607.zip
irc: use parsed command parameters in "305" and "306" command callbacks
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 8eeac3df9..86ebc42b6 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2311,10 +2311,11 @@ TEST(IrcProtocolWithServer, 305_306)
RECV(":bob!user@host PRIVMSG alice :hi Alice!");
CHECK_PV("bob", "bob hi Alice!");
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 305");
- CHECK_ERROR_ARGS("305", 2, 3);
+ CHECK_ERROR_PARAMS("305", 0, 1);
RECV(":server 306");
+ CHECK_ERROR_PARAMS("306", 0, 1);
POINTERS_EQUAL(NULL, ptr_server->channels->away_message);