1
0
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:
Sebastien Helleu
2013-10-08 22:15:11 +02:00
parent d82f8c8165
commit 4b94b74990
21 changed files with 134 additions and 14 deletions
+8
View File
@@ -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",
+1
View File
@@ -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;
+3 -1
View File
@@ -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"),