From 5fb7ebdfce61f038402a54d7f6dd9d74edab4d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 3 Sep 2021 13:43:07 +0200 Subject: irc: fix send of empty JOIN when connecting to a server with only parted channels (closes #1638) --- tests/unit/plugins/irc/test-irc-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/plugins/irc/test-irc-server.cpp b/tests/unit/plugins/irc/test-irc-server.cpp index d891d3ea0..2446f2905 100644 --- a/tests/unit/plugins/irc/test-irc-server.cpp +++ b/tests/unit/plugins/irc/test-irc-server.cpp @@ -1088,7 +1088,7 @@ TEST(IrcServerConnected, BuildAutojoin) server_recv (":server 001 alice"); - WEE_TEST_STR("", irc_server_build_autojoin (ptr_server)); + POINTERS_EQUAL(NULL, irc_server_build_autojoin (ptr_server)); /* join one channel */ server_recv (":alice!user@host JOIN #test1"); @@ -1096,7 +1096,7 @@ TEST(IrcServerConnected, BuildAutojoin) /* simulate a "parted" channel */ ptr_server->channels->part = 1; - WEE_TEST_STR("", irc_server_build_autojoin (ptr_server)); + POINTERS_EQUAL(NULL, irc_server_build_autojoin (ptr_server)); /* restore "part" flag */ ptr_server->channels->part = 0; -- cgit v1.2.3