summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 97f08e1dc..5edc5352c 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2915,20 +2915,24 @@ TEST(IrcProtocolWithServer, 344)
{
SRV_INIT_JOIN;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 344");
- CHECK_ERROR_ARGS("344", 2, 5);
+ CHECK_ERROR_PARAMS("344", 0, 3);
RECV(":server 344 alice");
- CHECK_ERROR_ARGS("344", 3, 5);
+ CHECK_ERROR_PARAMS("344", 1, 3);
RECV(":server 344 alice #test");
- CHECK_ERROR_ARGS("344", 4, 5);
+ CHECK_ERROR_PARAMS("344", 2, 3);
RECV(":server 344 alice #test nick!user@host");
CHECK_SRV("-- Channel reop #test: nick!user@host");
+ RECV(":server 344 alice #test :nick!user@host");
+ CHECK_SRV("-- Channel reop #test: nick!user@host");
/* channel not found */
RECV(":server 344 alice #xyz nick!user@host");
CHECK_SRV("-- Channel reop #xyz: nick!user@host");
+ RECV(":server 344 alice #xyz :nick!user@host");
+ CHECK_SRV("-- Channel reop #xyz: nick!user@host");
}
/*