diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index c329f9dbe..212773abb 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -1927,9 +1927,12 @@ TEST(IrcProtocolWithServer, wallops) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":alice!user@host WALLOPS"); - CHECK_ERROR_ARGS("wallops", 2, 3); + CHECK_ERROR_PARAMS("wallops", 0, 1); + + RECV(":alice!user@host WALLOPS message"); + CHECK_SRV("-- Wallops from alice (user@host): message"); RECV(":alice!user@host WALLOPS :message from admin"); CHECK_SRV("-- Wallops from alice (user@host): message from admin"); |