From 7c805aa699a70800049e1e9760b5bdde84e62be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 12 Jul 2023 19:13:40 +0200 Subject: irc: remove default CTCP replies FINGER and USERINFO (issue #1974) --- tests/unit/plugins/irc/test-irc-ctcp.cpp | 10 +++++----- tests/unit/plugins/irc/test-irc-protocol.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/unit/plugins/irc/test-irc-ctcp.cpp b/tests/unit/plugins/irc/test-irc-ctcp.cpp index 6fd4a6775..76f5340e6 100644 --- a/tests/unit/plugins/irc/test-irc-ctcp.cpp +++ b/tests/unit/plugins/irc/test-irc-ctcp.cpp @@ -125,19 +125,19 @@ TEST(IrcCtcp, IrcCtcpGetSupportedCtcp) server = irc_server_alloc ("server"); CHECK(server); - WEE_TEST_STR("ACTION CLIENTINFO DCC FINGER PING SOURCE TIME USERINFO VERSION", + WEE_TEST_STR("ACTION CLIENTINFO DCC PING SOURCE TIME VERSION", irc_ctcp_get_supported_ctcp (server)); config_file_option_set_with_string ("irc.ctcp.version", ""); - WEE_TEST_STR("ACTION CLIENTINFO DCC FINGER PING SOURCE TIME USERINFO", + WEE_TEST_STR("ACTION CLIENTINFO DCC PING SOURCE TIME", irc_ctcp_get_supported_ctcp (server)); config_file_option_set_with_string ("irc.ctcp.time", ""); - WEE_TEST_STR("ACTION CLIENTINFO DCC FINGER PING SOURCE USERINFO", + WEE_TEST_STR("ACTION CLIENTINFO DCC PING SOURCE", irc_ctcp_get_supported_ctcp (server)); config_file_option_set_with_string ("irc.ctcp.version", "test"); - WEE_TEST_STR("ACTION CLIENTINFO DCC FINGER PING SOURCE USERINFO VERSION", + WEE_TEST_STR("ACTION CLIENTINFO DCC PING SOURCE VERSION", irc_ctcp_get_supported_ctcp (server)); config_file_search_with_string ("irc.ctcp.version", NULL, NULL, &ptr_option, NULL); @@ -179,7 +179,7 @@ TEST(IrcCtcp, IrcCtcpEvalReply) WEE_TEST_STR("abc", irc_ctcp_eval_reply (server, "abc")); /* ${clientinfo} */ - WEE_TEST_STR("ACTION CLIENTINFO DCC FINGER PING SOURCE TIME USERINFO VERSION", + WEE_TEST_STR("ACTION CLIENTINFO DCC PING SOURCE TIME VERSION", irc_ctcp_eval_reply (server, "${clientinfo}")); /* ${version} */ diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index a1c7ab495..d993ceb7e 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2954,7 +2954,7 @@ TEST(IrcProtocolWithServer, privmsg) CHECK_SRV("--", "CTCP requested by alice: CLIENTINFO", "irc_privmsg,irc_ctcp,host_user@host,log1"); CHECK_SRV("--", "CTCP reply to alice: CLIENTINFO ACTION CLIENTINFO " - "DCC FINGER PING SOURCE TIME USERINFO VERSION", + "DCC PING SOURCE TIME VERSION", "irc_privmsg,irc_ctcp,irc_ctcp_reply,self_msg,notify_none," "no_highlight,log1"); } @@ -2971,7 +2971,7 @@ TEST(IrcProtocolWithServer, privmsg) CHECK_SRV("--", "CTCP requested by alice: CLIENTINFO", "irc_privmsg,irc_ctcp,host_user@host,log1"); CHECK_SRV("--", "CTCP reply to alice: CLIENTINFO ACTION CLIENTINFO " - "DCC FINGER PING SOURCE TIME USERINFO VERSION", + "DCC PING SOURCE TIME VERSION", "irc_privmsg,irc_ctcp,irc_ctcp_reply,self_msg,notify_none," "no_highlight,log1"); } -- cgit v1.2.3