mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
irc: add option irc.look.notice_welcome_tags
This commit is contained in:
@@ -87,6 +87,7 @@ struct t_config_option *irc_config_look_nick_mode;
|
||||
struct t_config_option *irc_config_look_nick_mode_empty;
|
||||
struct t_config_option *irc_config_look_notice_as_pv;
|
||||
struct t_config_option *irc_config_look_notice_welcome_redirect;
|
||||
struct t_config_option *irc_config_look_notice_welcome_tags;
|
||||
struct t_config_option *irc_config_look_notify_tags_ison;
|
||||
struct t_config_option *irc_config_look_notify_tags_whois;
|
||||
struct t_config_option *irc_config_look_part_closes_buffer;
|
||||
@@ -2472,6 +2473,13 @@ irc_config_init ()
|
||||
"beginning of notice message, for example notices sent by freenode "
|
||||
"server which look like: \"[#channel] Welcome to this channel...\""),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
irc_config_look_notice_welcome_tags = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"notice_welcome_tags", "string",
|
||||
N_("comma separated list of tags used in a welcome notices redirected "
|
||||
"to a channel, for example: \"notify_private\""),
|
||||
NULL, 0, 0, "", NULL, 0, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
irc_config_look_notify_tags_ison = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"notify_tags_ison", "string",
|
||||
|
||||
@@ -135,6 +135,7 @@ extern struct t_config_option *irc_config_look_nick_mode;
|
||||
extern struct t_config_option *irc_config_look_nick_mode_empty;
|
||||
extern struct t_config_option *irc_config_look_notice_as_pv;
|
||||
extern struct t_config_option *irc_config_look_notice_welcome_redirect;
|
||||
extern struct t_config_option *irc_config_look_notice_welcome_tags;
|
||||
extern struct t_config_option *irc_config_look_notify_tags_ison;
|
||||
extern struct t_config_option *irc_config_look_notify_tags_whois;
|
||||
extern struct t_config_option *irc_config_look_part_closes_buffer;
|
||||
|
||||
@@ -1169,7 +1169,9 @@ IRC_PROTOCOL_CALLBACK(notice)
|
||||
weechat_printf_date_tags ((ptr_channel) ? ptr_channel->buffer : server->buffer,
|
||||
date,
|
||||
irc_protocol_tags (command,
|
||||
(is_channel_orig) ? "notify_message" : "notify_private",
|
||||
(is_channel_orig) ?
|
||||
"notify_message" :
|
||||
weechat_config_string (irc_config_look_notice_welcome_tags),
|
||||
nick),
|
||||
"%s%s%s%s%s(%s%s%s)%s%s%s%s%s: %s",
|
||||
weechat_prefix ("network"),
|
||||
|
||||
Reference in New Issue
Block a user