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:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user