diff options
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 9ea7f492d..97f08e1dc 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2892,16 +2892,18 @@ TEST(IrcProtocolWithServer, 341) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 341"); - CHECK_ERROR_ARGS("341", 2, 5); + CHECK_ERROR_PARAMS("341", 0, 3); RECV(":server 341 alice"); - CHECK_ERROR_ARGS("341", 3, 5); + CHECK_ERROR_PARAMS("341", 1, 3); RECV(":server 341 alice bob"); - CHECK_ERROR_ARGS("341", 4, 5); + CHECK_ERROR_PARAMS("341", 2, 3); RECV(":server 341 alice bob #test"); CHECK_SRV("-- alice has invited bob to #test"); + RECV(":server 341 alice bob :#test"); + CHECK_SRV("-- alice has invited bob to #test"); } /* |