irc: add option irc.look.notice_welcome_tags

v2.8-utf8proc
Sebastien Helleu 2013-10-08 22:15:11 +02:00
parent d82f8c8165
commit 4b94b74990
21 changed files with 134 additions and 14 deletions

View File

@ -16,6 +16,7 @@ Version 0.4.3 (under dev!)
* core: add options to customize default text search in buffers:
weechat.look.buffer_search_{case_sensitive|force_default|regex|where}
* irc: add option irc.look.notice_welcome_tags
* irc: add server option "default_msg_kick" to customize default kick/kickban
message (task #12777)

View File

@ -258,6 +258,11 @@
** Typ: boolesch
** Werte: on, off (Standardwert: `on`)
* [[option_irc.look.notice_welcome_tags]] *irc.look.notice_welcome_tags*
** Beschreibung: `comma separated list of tags used in a welcome notices redirected to a channel, for example: "notify_private"`
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette (Standardwert: `""`)
* [[option_irc.look.notify_tags_ison]] *irc.look.notify_tags_ison*
** Beschreibung: `durch Kommata getrennte Liste von Schlagwörtern die in notify-Nachrichten genutzt werden sollen, falls ein Nick einen Server betritt oder verlässt (Rückgabe durch Befehl ison), zum Beispiel: "notify_message", "notify_private" oder "notify_highlight"`
** Typ: Zeichenkette

View File

@ -258,6 +258,11 @@
** type: boolean
** values: on, off (default value: `on`)
* [[option_irc.look.notice_welcome_tags]] *irc.look.notice_welcome_tags*
** description: `comma separated list of tags used in a welcome notices redirected to a channel, for example: "notify_private"`
** type: string
** values: any string (default value: `""`)
* [[option_irc.look.notify_tags_ison]] *irc.look.notify_tags_ison*
** description: `comma separated list of tags used in messages displayed by notify when a nick joins or quits server (result of command ison), for example: "notify_message", "notify_private" or "notify_highlight"`
** type: string

View File

@ -258,6 +258,11 @@
** type: booléen
** valeurs: on, off (valeur par défaut: `on`)
* [[option_irc.look.notice_welcome_tags]] *irc.look.notice_welcome_tags*
** description: `liste des tags (séparés par des virgules) utilisés dans la notice de bienvenue redirigée vers un canal, par exemple: "notify_private"`
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: `""`)
* [[option_irc.look.notify_tags_ison]] *irc.look.notify_tags_ison*
** description: `liste des tags (séparés par des virgules) utilisés dans les messages affichés par notify lorsqu'un pseudo a rejoint ou quitté le serveur (résultat de la commande ison), par exemple: "notify_message", "notify_private" ou "notify_highlight"`
** type: chaîne

View File

@ -258,6 +258,11 @@
** tipo: bool
** valori: on, off (valore predefinito: `on`)
* [[option_irc.look.notice_welcome_tags]] *irc.look.notice_welcome_tags*
** descrizione: `comma separated list of tags used in a welcome notices redirected to a channel, for example: "notify_private"`
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: `""`)
* [[option_irc.look.notify_tags_ison]] *irc.look.notify_tags_ison*
** descrizione: `elenco separato da virgole di tag usati nei messaggi mostrati dalle notifiche quando un nick entra o esce da un server (risultato del comando ison), ad esempio: "notify_message", "notify_private" o "notify_highlight"`
** tipo: stringa

View File

@ -258,6 +258,11 @@
** タイプ: ブール
** 値: on, off (デフォルト値: `on`)
* [[option_irc.look.notice_welcome_tags]] *irc.look.notice_welcome_tags*
** 説明: `comma separated list of tags used in a welcome notices redirected to a channel, for example: "notify_private"`
** タイプ: 文字列
** 値: 未制約文字列 (デフォルト値: `""`)
* [[option_irc.look.notify_tags_ison]] *irc.look.notify_tags_ison*
** 説明: `あるニックネームが参加またはサーバから切断したときの (ison コマンドの結果)、notify によって表示されたメッセージに使われたタグのコンマ区切りリスト、例えば: "notify_message"、"notify_highlight"、"notify_private"`
** タイプ: 文字列

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:24+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -6425,6 +6425,15 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
#, fuzzy
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"čárkou oddělený seznam značek použitých ve zprávách vypsaných notifikacemi, "
"když se přezdívka připojí/odpojí k/ze serveru (výsledek příkazu ison), "
"například: \"notify_highlight\", \"notify_message\" or \"notify_private\""
#, fuzzy
msgid ""
"comma separated list of tags used in messages displayed by notify when a "

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:24+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@ -7197,6 +7197,15 @@ msgstr ""
"sieht auf dem freenode Server wie folgt aus: \"[#channel] Herzlich "
"Willkommen zum ...\""
#, fuzzy
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"durch Kommata getrennte Liste von Schlagwörtern die für private Nachrichten "
"genutzt werden sollen. Zum Beispiel: \"notify_message\", \"notify_private\" "
"oder \"notify_highlight\""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:24+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -6681,6 +6681,15 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
#, fuzzy
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"lista separada por comas de etiquetas usadas en los mensajes de notificación "
"cuando un apodo se une o abandona el servidor (resultado del comando ison), "
"por ejemplo: \"notify_highlight\", \"notify_message\" o \"notify_private\""
#, fuzzy
msgid ""
"comma separated list of tags used in messages displayed by notify when a "

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"PO-Revision-Date: 2013-10-08 13:32+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 21:59+0200\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -7025,6 +7025,13 @@ msgstr ""
"canal au début du message de notice, par exemple les notices envoyées par le "
"serveur freenode qui ressemblent à: \"[#canal] Bienvenue sur ce canal...\""
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"liste des tags (séparés par des virgules) utilisés dans la notice de "
"bienvenue redirigée vers un canal, par exemple: \"notify_private\""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:24+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5938,6 +5938,11 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:24+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -6812,6 +6812,14 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
#, fuzzy
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"elenco separato da virgole di tag usati nei messaggi privati, ad esempio: "
"\"notify_message\", \"notify_private\" o \"notify_highlight\""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:25+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@ -6741,6 +6741,14 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
#, fuzzy
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"プライベートメッセージに使われたタグのコンマ区切りリスト、例えば: "
"\"notify_message\"、\"notify_private\"、\"notify_highlight\""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:25+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -6883,6 +6883,14 @@ msgstr ""
"przykład powiadomienia wysyłane przez serwer freenode wyglądają następująco: "
"\"[#kanał] Witaj na tym kanale...\""
#, fuzzy
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
"oddzielona przecinkami lista tagów użytych w prywatnych wiadomościach na "
"przykład: \"notify_message\", \"notify_private\" or \"notify_highlight\""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-06 12:40+0200\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -6158,6 +6158,11 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-08 11:25+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5961,6 +5961,11 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-10-06 12:40+0200\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5256,6 +5256,11 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-10-08 13:31+0200\n"
"POT-Creation-Date: 2013-10-08 21:59+0200\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5214,6 +5214,11 @@ msgid ""
"\"[#channel] Welcome to this channel...\""
msgstr ""
msgid ""
"comma separated list of tags used in a welcome notices redirected to a "
"channel, for example: \"notify_private\""
msgstr ""
msgid ""
"comma separated list of tags used in messages displayed by notify when a "
"nick joins or quits server (result of command ison), for example: "

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",

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;

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"),