diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-15 19:58:19 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 0ea0b24563f91b12fdc77a7d06014cd97c3ac059 (patch) | |
tree | d6a0aa9a20c04934c66fc056e909b0bd988cea18 /tests/unit | |
parent | ec816b4be5c3c5cd0ac3acb64e0f3e453eb1469b (diff) | |
download | weechat-0ea0b24563f91b12fdc77a7d06014cd97c3ac059.zip |
irc: use parsed command parameters in "001" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 212773abb..027dc6340 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -1984,6 +1984,10 @@ TEST(IrcProtocolWithServer, 001_empty) LONGS_EQUAL(0, ptr_server->is_connected); STRCMP_EQUAL("nick1", ptr_server->nick); + /* not enough parameters */ + RECV(":server 001"); + CHECK_ERROR_PARAMS("001", 0, 1); + RECV(":server 001 alice"); CHECK_NO_MSG; LONGS_EQUAL(1, ptr_server->is_connected); |