1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Add irc and jabber options to display nick modes in input_prompt bar item

This commit is contained in:
Sebastien Helleu
2009-02-11 10:02:35 +01:00
parent af967f9ff9
commit 85d19bc363
18 changed files with 139 additions and 9 deletions
+10
View File
@@ -66,6 +66,16 @@
</listitem>
</itemizedlist>
<command>irc.look.display_nick_modes</command>: display nick modes in "input_prompt" bar item
<itemizedlist>
<listitem>
<para>type: boolean</para>
</listitem>
<listitem>
<para>values: on, off (default value: on)</para>
</listitem>
</itemizedlist>
<command>irc.look.hide_nickserv_pwd</command>: Von NickServ angezeigte Passwörter verstecken
<itemizedlist>
<listitem>
+10
View File
@@ -66,6 +66,16 @@
</listitem>
</itemizedlist>
<command>jabber.look.display_nick_modes</command>: display nick modes in "input_prompt" bar item
<itemizedlist>
<listitem>
<para>type: boolean</para>
</listitem>
<listitem>
<para>values: on, off (default value: on)</para>
</listitem>
</itemizedlist>
<command>jabber.look.highlight_tags</command>: comma separated list of tags for messages that may produce highlight (usually any message from another user, not server messages,..)
<itemizedlist>
<listitem>
+10
View File
@@ -66,6 +66,16 @@
</listitem>
</itemizedlist>
<command>irc.look.display_nick_modes</command>: display nick modes in "input_prompt" bar item
<itemizedlist>
<listitem>
<para>type: boolean</para>
</listitem>
<listitem>
<para>values: on, off (default value: on)</para>
</listitem>
</itemizedlist>
<command>irc.look.hide_nickserv_pwd</command>: hide password displayed by nickserv
<itemizedlist>
<listitem>
+10
View File
@@ -66,6 +66,16 @@
</listitem>
</itemizedlist>
<command>jabber.look.display_nick_modes</command>: display nick modes in "input_prompt" bar item
<itemizedlist>
<listitem>
<para>type: boolean</para>
</listitem>
<listitem>
<para>values: on, off (default value: on)</para>
</listitem>
</itemizedlist>
<command>jabber.look.highlight_tags</command>: comma separated list of tags for messages that may produce highlight (usually any message from another user, not server messages,..)
<itemizedlist>
<listitem>
+10
View File
@@ -66,6 +66,16 @@
</listitem>
</itemizedlist>
<command>irc.look.display_nick_modes</command>: affiche les modes du pseudo dans l'objet de barre "input_prompt"
<itemizedlist>
<listitem>
<para>type: booléen</para>
</listitem>
<listitem>
<para>valeurs: on, off (valeur par défaut: on)</para>
</listitem>
</itemizedlist>
<command>irc.look.hide_nickserv_pwd</command>: masquer le mot de passe affiché par nickserv
<itemizedlist>
<listitem>
+10
View File
@@ -66,6 +66,16 @@
</listitem>
</itemizedlist>
<command>jabber.look.display_nick_modes</command>: affiche les modes du pseudo dans l'objet de barre "input_prompt"
<itemizedlist>
<listitem>
<para>type: booléen</para>
</listitem>
<listitem>
<para>valeurs: on, off (valeur par défaut: on)</para>
</listitem>
</itemizedlist>
<command>jabber.look.highlight_tags</command>: liste des tags pour les messages qui peuvent produire un highlight (séparés par des virgules, typiquement tout message venant d'un autre utilisateur, pas les messages du serveur, ...)
<itemizedlist>
<listitem>
+4 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-02-10 12:42+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3487,6 +3487,9 @@ msgstr "zobrazit zprávu, když označen/odznačen jako nepřítomen"
msgid "display channel modes in \"buffer_name\" bar item"
msgstr ""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr ""
msgid "hide password displayed by nickserv"
msgstr "schovat heslo zobrazené nickservem"
+4 -1
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-02-10 12:42+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3471,6 +3471,9 @@ msgstr "bei Abwesenheit und Rückkehr eine Nachricht anzeigen"
msgid "display channel modes in \"buffer_name\" bar item"
msgstr ""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr ""
msgid "hide password displayed by nickserv"
msgstr "Von NickServ angezeigte Passwörter verstecken"
+4 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-02-10 12:42+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3458,6 +3458,9 @@ msgstr "mostrar mensaje cuando se marque/desmarque como ausente"
msgid "display channel modes in \"buffer_name\" bar item"
msgstr ""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr ""
msgid "hide password displayed by nickserv"
msgstr "ocultar contraseña mostrada por nickserv"
+5 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-02-10 12:42+0100\n"
"PO-Revision-Date: 2009-02-10 12:44+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+0100\n"
"PO-Revision-Date: 2009-02-11 09:56+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -3597,6 +3597,9 @@ msgstr "affiche un message pour l'absence/le retour"
msgid "display channel modes in \"buffer_name\" bar item"
msgstr "affiche les modes du canal dans l'objet de barre \"buffer_name\""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr "affiche les modes du pseudo dans l'objet de barre \"input_prompt\""
msgid "hide password displayed by nickserv"
msgstr "masquer le mot de passe affiché par nickserv"
+4 -1
View File
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-02-10 12:42+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3506,6 +3506,9 @@ msgstr "üzenet mutatása távollétkor/visszatéréskor"
msgid "display channel modes in \"buffer_name\" bar item"
msgstr ""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr ""
msgid "hide password displayed by nickserv"
msgstr "a nickserv által mutatott jelszó elrejtése"
+4 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-02-10 12:42+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3499,6 +3499,9 @@ msgstr "показывать сообщение во все каналы при
msgid "display channel modes in \"buffer_name\" bar item"
msgstr ""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr ""
msgid "hide password displayed by nickserv"
msgstr "скрывать пароль, отображаемый nickserv'ом"
+4 -1
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: 2009-02-10 12:42+0100\n"
"POT-Creation-Date: 2009-02-11 09:56+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"
@@ -2973,6 +2973,9 @@ msgstr ""
msgid "display channel modes in \"buffer_name\" bar item"
msgstr ""
msgid "display nick modes in \"input_prompt\" bar item"
msgstr ""
msgid "hide password displayed by nickserv"
msgstr ""
+2 -1
View File
@@ -249,7 +249,8 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item,
buf = malloc (length);
if (buf)
{
if (server->nick_modes && server->nick_modes[0])
if (weechat_config_boolean (irc_config_look_display_nick_modes)
&& server->nick_modes && server->nick_modes[0])
{
snprintf (buf, length, "%s%s%s(%s%s%s)",
IRC_COLOR_INPUT_NICK,
+23
View File
@@ -50,6 +50,7 @@ struct t_config_option *irc_config_look_nick_suffix;
struct t_config_option *irc_config_look_nick_completion_smart;
struct t_config_option *irc_config_look_display_away;
struct t_config_option *irc_config_look_display_channel_modes;
struct t_config_option *irc_config_look_display_nick_modes;
struct t_config_option *irc_config_look_hide_nickserv_pwd;
struct t_config_option *irc_config_look_highlight_tags;
struct t_config_option *irc_config_look_show_away_once;
@@ -183,6 +184,22 @@ irc_config_change_look_display_channel_modes (void *data,
weechat_bar_item_update ("buffer_name");
}
/*
* irc_config_change_look_display_nick_modes: called when the "display
* nick modes" option is changed
*/
void
irc_config_change_look_display_nick_modes (void *data,
struct t_config_option *option)
{
/* make C compiler happy */
(void) data;
(void) option;
weechat_bar_item_update ("input_prompt");
}
/*
* irc_config_change_look_highlight_tags: called when the "highlight tags"
* option is changed
@@ -1038,6 +1055,12 @@ irc_config_init ()
N_("display channel modes in \"buffer_name\" bar item"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
&irc_config_change_look_display_channel_modes, NULL, NULL, NULL);
irc_config_look_display_nick_modes = weechat_config_new_option (
irc_config_file, ptr_section,
"display_nick_modes", "boolean",
N_("display nick modes in \"input_prompt\" bar item"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
&irc_config_change_look_display_nick_modes, NULL, NULL, NULL);
irc_config_look_hide_nickserv_pwd = weechat_config_new_option (
irc_config_file, ptr_section,
"hide_nickserv_pwd", "boolean",
+1
View File
@@ -39,6 +39,7 @@ extern struct t_config_option *irc_config_look_nick_suffix;
extern struct t_config_option *irc_config_look_nick_completion_smart;
extern struct t_config_option *irc_config_look_display_away;
extern struct t_config_option *irc_config_look_display_channel_modes;
extern struct t_config_option *irc_config_look_display_nick_modes;
extern struct t_config_option *irc_config_look_hide_nickserv_pwd;
extern struct t_config_option *irc_config_look_highlight_tags;
extern struct t_config_option *irc_config_look_show_away_once;
+23
View File
@@ -49,6 +49,7 @@ struct t_config_option *jabber_config_look_nick_suffix;
struct t_config_option *jabber_config_look_nick_completion_smart;
struct t_config_option *jabber_config_look_display_away;
struct t_config_option *jabber_config_look_display_muc_modes;
struct t_config_option *jabber_config_look_display_nick_modes;
struct t_config_option *jabber_config_look_highlight_tags;
struct t_config_option *jabber_config_look_show_away_once;
struct t_config_option *jabber_config_look_smart_filter;
@@ -182,6 +183,22 @@ jabber_config_change_look_display_muc_modes (void *data,
weechat_bar_item_update ("buffer_name");
}
/*
* jabber_config_change_look_display_nick_modes: called when the "display
* nick modes" option is changed
*/
void
jabber_config_change_look_display_nick_modes (void *data,
struct t_config_option *option)
{
/* make C compiler happy */
(void) data;
(void) option;
weechat_bar_item_update ("input_prompt");
}
/*
* jabber_config_change_look_highlight_tags: called when the "highlight tags"
* option is changed
@@ -784,6 +801,12 @@ jabber_config_init ()
N_("display MUC modes in \"buffer_name\" bar item"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
&jabber_config_change_look_display_muc_modes, NULL, NULL, NULL);
jabber_config_look_display_nick_modes = weechat_config_new_option (
jabber_config_file, ptr_section,
"display_nick_modes", "boolean",
N_("display nick modes in \"input_prompt\" bar item"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
&jabber_config_change_look_display_nick_modes, NULL, NULL, NULL);
jabber_config_look_highlight_tags = weechat_config_new_option (
jabber_config_file, ptr_section,
"highlight_tags", "string",
+1
View File
@@ -39,6 +39,7 @@ extern struct t_config_option *jabber_config_look_nick_suffix;
extern struct t_config_option *jabber_config_look_nick_completion_smart;
extern struct t_config_option *jabber_config_look_display_away;
extern struct t_config_option *jabber_config_look_display_muc_modes;
extern struct t_config_option *jabber_config_look_display_nick_modes;
extern struct t_config_option *jabber_config_look_highlight_tags;
extern struct t_config_option *jabber_config_look_show_away_once;
extern struct t_config_option *jabber_config_look_smart_filter;