summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-07-12 19:13:40 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-07-12 19:13:40 +0200
commit7c805aa699a70800049e1e9760b5bdde84e62be3 (patch)
tree77a29204433d9fc004b7e88c80262fcbfd23287e /tests
parent9237852b262226fe74fe893909c6b30a699d3779 (diff)
downloadweechat-7c805aa699a70800049e1e9760b5bdde84e62be3.zip
irc: remove default CTCP replies FINGER and USERINFO (issue #1974)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/irc/test-irc-ctcp.cpp10
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp4
2 files changed, 7 insertions, 7 deletions
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");
}