1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

irc: remove default CTCP replies FINGER and USERINFO (issue #1974)

This commit is contained in:
Sébastien Helleu
2023-07-12 19:13:40 +02:00
parent 9237852b26
commit 7c805aa699
6 changed files with 28 additions and 13 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ struct t_irc_channel;
/* list of supported CTCPs (for completion in command /ctcp) */
#define IRC_COMMAND_CTCP_SUPPORTED_COMPLETION \
"action|clientinfo|finger|ping|source|time|userinfo|version"
"action|clientinfo|ping|source|time|version"
extern void irc_command_away_server (struct t_irc_server *server,
const char *arguments,
+2 -4
View File
@@ -42,10 +42,8 @@
struct t_irc_ctcp_reply irc_ctcp_default_reply[] =
{ { "clientinfo", "${clientinfo}" },
{ "finger", "WeeChat ${version}" },
{ "source", "${download}" },
{ "time", "${time}" },
{ "userinfo", "${username} (${realname})" },
{ "version", "WeeChat ${version}" },
{ NULL, NULL },
};
@@ -572,8 +570,8 @@ irc_ctcp_eval_reply (struct t_irc_server *server, const char *format)
return NULL;
/*
* $clientinfo: supported CTCP, example:
* ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
* $clientinfo: supported CTCP, example with default config:
* ACTION CLIENTINFO DCC PING SOURCE TIME VERSION
*/
info = irc_ctcp_get_supported_ctcp (server);
if (info)