Add new option irc.look.buffer_auto_switch_on_join

v2.8-utf8proc
Sebastien Helleu 2011-03-15 11:51:48 +01:00
parent fdc29b5f49
commit c61254f256
18 changed files with 75 additions and 14 deletions

View File

@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.5-dev, 2011-03-11
v0.3.5-dev, 2011-03-15
Version 0.3.5 (under dev!)
@ -36,6 +36,7 @@ Version 0.3.5 (under dev!)
being added with command "/color")
* core: allow background for nick colors (using ":")
* api: add new function buffer_match_list
* irc: add new option irc.look.buffer_auto_switch_on_join
* irc: add new option irc.look.smart_filter_nick
* irc: ignore join if nick is not self nick and if channel buffer does not exist
(bug #32667)

View File

@ -73,6 +73,11 @@
** Typ: Farbe
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `default`)
* *irc.look.buffer_auto_switch_on_join*
** Beschreibung: `auto switch to channel buffer on join`
** Typ: boolesch
** Werte: on, off (Standardwert: `on`)
* *irc.look.color_nicks_in_names*
** Beschreibung: `nutzt in der Ausgabe von /names die Nickfarbe (oder bei der Auflistung der Nicks wenn man einen Channel betritt)`
** Typ: boolesch

View File

@ -73,6 +73,11 @@
** type: color
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "_" for underline (default value: `default`)
* *irc.look.buffer_auto_switch_on_join*
** description: `auto switch to channel buffer on join`
** type: boolean
** values: on, off (default value: `on`)
* *irc.look.color_nicks_in_names*
** description: `use nick color in output of /names (or list of nicks displayed when joining a channel)`
** type: boolean

View File

@ -73,6 +73,11 @@
** type: couleur
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour du gras, "!" pour la vidéo inverse, "_" pour du souligné (valeur par défaut: `default`)
* *irc.look.buffer_auto_switch_on_join*
** description: `basculer automatiquement vers le tampon du canal sur un join`
** type: booléen
** valeurs: on, off (valeur par défaut: `on`)
* *irc.look.color_nicks_in_names*
** description: `utiliser la couleur du pseudo dans la sortie de /names (ou la liste des pseudos affichée lorsqu'on rejoint un canal)`
** type: booléen

View File

@ -73,6 +73,11 @@
** tipo: colore
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "_" for underline (valore predefinito: `default`)
* *irc.look.buffer_auto_switch_on_join*
** descrizione: `auto switch to channel buffer on join`
** tipo: bool
** valori: on, off (valore predefinito: `on`)
* *irc.look.color_nicks_in_names*
** descrizione: `use nick color in output of /names (or list of nicks displayed when joining a channel)`
** tipo: bool

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4918,6 +4918,9 @@ msgstr "%s%s: chyba při vytváření serveru \"%s\""
msgid "%s%s: error creating server option \"%s\""
msgstr "%s%s: chyba při vytváření volby serveru \"%s\""
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-11 17:21+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-03-12 10:15+0100\n"
"Last-Translator: Nils G.\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5129,6 +5129,9 @@ msgstr "%s%s: Fehler bei der Erstellung des Servers \"%s\""
msgid "%s%s: error creating server option \"%s\""
msgstr "%s%s: Fehler bei der Erstellung der Server-Option \"%s\""
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5030,6 +5030,9 @@ msgstr "%s%s: error al crear el servidor \"%s\""
msgid "%s%s: error creating server option \"%s\""
msgstr "%s%s: error al crear la opción \"%s\" del servidor"
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"PO-Revision-Date: 2011-03-09 10:07+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-03-15 11:40+0100\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@ -5032,6 +5032,9 @@ msgstr "%s%s: erreur de création du serveur \"%s\""
msgid "%s%s: error creating server option \"%s\""
msgstr "%s%s: erreur de création de l'option serveur \"%s\""
msgid "auto switch to channel buffer on join"
msgstr "basculer automatiquement vers le tampon du canal sur un join"
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4598,6 +4598,9 @@ msgstr "%s nincs elég memória az információs pult üzenethez\n"
msgid "%s%s: error creating server option \"%s\""
msgstr "%s nincs elég memória az információs pult üzenethez\n"
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-03-09 09:29+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4945,6 +4945,9 @@ msgstr "%s%s: errore durante la creazione del server \"%s\""
msgid "%s%s: error creating server option \"%s\""
msgstr "%s%s: errore durante la creazione dell'opzione del server \"%s\""
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5010,6 +5010,9 @@ msgstr "%s%s: błąd podczas tworzenia serwera \"%s\""
msgid "%s%s: error creating server option \"%s\""
msgstr "%s%s: błąd podczas tworzenia opcji dla serwera \"%s\""
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-02-07 17:30+0100\n"
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4441,6 +4441,9 @@ msgstr ""
msgid "%s%s: error creating server option \"%s\""
msgstr ""
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: 2011-02-07 17:30+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4605,6 +4605,9 @@ msgstr "%s недостаточно памяти для сообщения в с
msgid "%s%s: error creating server option \"%s\""
msgstr "%s недостаточно памяти для сообщения в строке информации\n"
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2011-03-09 10:06+0100\n"
"POT-Creation-Date: 2011-03-15 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3907,6 +3907,9 @@ msgstr ""
msgid "%s%s: error creating server option \"%s\""
msgstr ""
msgid "auto switch to channel buffer on join"
msgstr ""
msgid ""
"use nick color in output of /names (or list of nicks displayed when joining "
"a channel)"

View File

@ -283,7 +283,9 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
server->channels = new_channel;
server->last_channel = new_channel;
if (switch_to_channel)
if (switch_to_channel
&& ((channel_type != IRC_CHANNEL_TYPE_CHANNEL)
|| weechat_config_boolean (irc_config_look_buffer_auto_switch_on_join)))
{
weechat_buffer_set (new_buffer, "display",
(auto_switch) ? "auto" : "1");

View File

@ -50,6 +50,7 @@ struct t_config_section *irc_config_section_server = NULL;
/* IRC config, look section */
struct t_config_option *irc_config_look_buffer_auto_switch_on_join;
struct t_config_option *irc_config_look_color_nicks_in_names;
struct t_config_option *irc_config_look_color_nicks_in_nicklist;
struct t_config_option *irc_config_look_color_nicks_in_server_messages;
@ -1792,7 +1793,13 @@ irc_config_init ()
weechat_config_free (irc_config_file);
return 0;
}
irc_config_look_buffer_auto_switch_on_join = weechat_config_new_option (
irc_config_file, ptr_section,
"buffer_auto_switch_on_join", "boolean",
N_("auto switch to channel buffer on join"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
irc_config_look_color_nicks_in_names = weechat_config_new_option (
irc_config_file, ptr_section,
"color_nicks_in_names", "boolean",

View File

@ -75,6 +75,7 @@ extern struct t_config_section *irc_config_section_ctcp;
extern struct t_config_section *irc_config_section_server_default;
extern struct t_config_section *irc_config_section_server;
extern struct t_config_option *irc_config_look_buffer_auto_switch_on_join;
extern struct t_config_option *irc_config_look_color_nicks_in_names;
extern struct t_config_option *irc_config_look_color_nicks_in_nicklist;
extern struct t_config_option *irc_config_look_color_nicks_in_server_messages;