1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

irc: use parsed command parameters in "001" command callback

This commit is contained in:
Sébastien Helleu
2021-10-15 19:58:19 +02:00
parent ec816b4be5
commit 0ea0b24563
2 changed files with 8 additions and 4 deletions
@@ -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);