mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +02:00
Add options for CTCP, to block/customize CTCP reply (task #9693), add missing CTCP: clientinfo, finger, source, time, userinfo (task #7270)
This commit is contained in:
@@ -295,6 +295,14 @@ plugin_api_info_get_internal (void *data, const char *info_name,
|
||||
{
|
||||
return LOCALEDIR;
|
||||
}
|
||||
else if (string_strcasecmp (info_name, "weechat_site") == 0)
|
||||
{
|
||||
return WEECHAT_WEBSITE;
|
||||
}
|
||||
else if (string_strcasecmp (info_name, "weechat_site_download") == 0)
|
||||
{
|
||||
return WEECHAT_WEBSITE_DOWNLOAD;
|
||||
}
|
||||
else if (string_strcasecmp (info_name, "charset_terminal") == 0)
|
||||
{
|
||||
return weechat_local_charset;
|
||||
@@ -924,6 +932,10 @@ plugin_api_init ()
|
||||
&plugin_api_info_get_internal, NULL);
|
||||
hook_info (NULL, "weechat_localedir", N_("WeeChat \"locale\" directory"),
|
||||
&plugin_api_info_get_internal, NULL);
|
||||
hook_info (NULL, "weechat_site", N_("WeeChat site"),
|
||||
&plugin_api_info_get_internal, NULL);
|
||||
hook_info (NULL, "weechat_site_download", N_("WeeChat site, download page"),
|
||||
&plugin_api_info_get_internal, NULL);
|
||||
hook_info (NULL, "charset_terminal", N_("terminal charset"),
|
||||
&plugin_api_info_get_internal, NULL);
|
||||
hook_info (NULL, "charset_internal", N_("WeeChat internal charset"),
|
||||
|
||||
Reference in New Issue
Block a user