From 8d12187f3dccb412b36841d5780f63b7ef8ae3de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 14 Oct 2021 23:21:27 +0200 Subject: irc: require nick in "away" command callback --- tests/unit/plugins/irc/test-irc-protocol.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/unit/plugins') diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index c42c0744a..5f7c1c630 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -725,6 +725,10 @@ TEST(IrcProtocolWithServer, away) SRV_INIT_JOIN; + /* missing nick */ + RECV("AWAY"); + CHECK_ERROR_NICK("away"); + ptr_nick = ptr_server->channels->nicks; LONGS_EQUAL(0, ptr_nick->away); -- cgit v1.2.3