Add new option irc.look.color_nicks_in_names
parent
e8df46c005
commit
7351c709f8
|
@ -1,7 +1,7 @@
|
|||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.5-dev, 2011-03-03
|
||||
v0.3.5-dev, 2011-03-04
|
||||
|
||||
|
||||
Version 0.3.5 (under dev!)
|
||||
|
@ -30,7 +30,8 @@ Version 0.3.5 (under dev!)
|
|||
* core: allow background for nick colors (using ":")
|
||||
* irc: fix crash when setting wrong value in option
|
||||
irc.server.xxx.sasl_mechanism (bug #32670)
|
||||
* irc: add new option irc.look.color_nicks_in_nicklist
|
||||
* irc: add new options irc.look.color_nicks_in_nicklist and
|
||||
irc.look.color_nicks_in_names
|
||||
* irc: fix crash when completing /part command on a non-irc buffer (bug #32402)
|
||||
* irc: add many missing commands for target buffer (options irc.msgbuffer.xxx)
|
||||
(bug #32216)
|
||||
|
|
|
@ -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.color_nicks_in_names*
|
||||
** Beschreibung: `use nick color in output of /names (or list of nicks displayed when joining a channel)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `off`)
|
||||
|
||||
* *irc.look.color_nicks_in_nicklist*
|
||||
** Beschreibung: `Nutze Nickfarbe in Nicklist`
|
||||
** Typ: boolesch
|
||||
|
|
|
@ -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.color_nicks_in_names*
|
||||
** description: `use nick color in output of /names (or list of nicks displayed when joining a channel)`
|
||||
** type: boolean
|
||||
** values: on, off (default value: `off`)
|
||||
|
||||
* *irc.look.color_nicks_in_nicklist*
|
||||
** description: `use nick color in nicklist`
|
||||
** type: boolean
|
||||
|
|
|
@ -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.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
|
||||
** valeurs: on, off (valeur par défaut: `off`)
|
||||
|
||||
* *irc.look.color_nicks_in_nicklist*
|
||||
** description: `utiliser la couleur du pseudo dans la liste des pseudos`
|
||||
** type: booléen
|
||||
|
|
|
@ -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.color_nicks_in_names*
|
||||
** descrizione: `use nick color in output of /names (or list of nicks displayed when joining a channel)`
|
||||
** tipo: bool
|
||||
** valori: on, off (valore predefinito: `off`)
|
||||
|
||||
* *irc.look.color_nicks_in_nicklist*
|
||||
** descrizione: `use nick color in nicklist`
|
||||
** tipo: bool
|
||||
|
|
7
po/cs.po
7
po/cs.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -4912,6 +4912,11 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "barva textu pro skupiny v seznamu přezdívek"
|
||||
|
|
7
po/de.po
7
po/de.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+0100\n"
|
||||
"PO-Revision-Date: 2011-02-24 19:23+0100\n"
|
||||
"Last-Translator: Nils G.\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
|
@ -5111,6 +5111,11 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "Nutze Nickfarbe in Nicklist"
|
||||
|
||||
|
|
7
po/es.po
7
po/es.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -5023,6 +5023,11 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "color para grupos en la lista de apodos"
|
||||
|
|
11
po/fr.po
11
po/fr.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"PO-Revision-Date: 2011-02-25 23:14+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+0100\n"
|
||||
"PO-Revision-Date: 2011-03-04 14:05+0100\n"
|
||||
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: French\n"
|
||||
|
@ -5017,6 +5017,13 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
"utiliser la couleur du pseudo dans la sortie de /names (ou la liste des "
|
||||
"pseudos affichée lorsqu'on rejoint un canal)"
|
||||
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "utiliser la couleur du pseudo dans la liste des pseudos"
|
||||
|
||||
|
|
7
po/hu.po
7
po/hu.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -4592,6 +4592,11 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "név színe"
|
||||
|
|
7
po/it.po
7
po/it.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+0100\n"
|
||||
"PO-Revision-Date: 2011-02-22 19:26+0100\n"
|
||||
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
|
@ -4937,6 +4937,11 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "colore del testo per i gruppi nella lista nick"
|
||||
|
|
7
po/pl.po
7
po/pl.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -5003,6 +5003,11 @@ 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 ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "kolor grup na liście nicków"
|
||||
|
|
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -4434,6 +4434,11 @@ msgstr ""
|
|||
msgid "%s%s: error creating server option \"%s\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr ""
|
||||
|
||||
|
|
7
po/ru.po
7
po/ru.po
|
@ -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-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -4599,6 +4599,11 @@ msgstr "%s недостаточно памяти для сообщения в с
|
|||
msgid "%s%s: error creating server option \"%s\""
|
||||
msgstr "%s недостаточно памяти для сообщения в строке информации\n"
|
||||
|
||||
msgid ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr "цвет ника"
|
||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-02-25 23:15+0100\n"
|
||||
"POT-Creation-Date: 2011-03-04 13:51+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"
|
||||
|
@ -3901,6 +3901,11 @@ msgstr ""
|
|||
msgid "%s%s: error creating server option \"%s\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"use nick color in output of /names (or list of nicks displayed when joining "
|
||||
"a channel)"
|
||||
msgstr ""
|
||||
|
||||
msgid "use nick color in nicklist"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ struct t_config_section *irc_config_section_server = NULL;
|
|||
|
||||
/* IRC config, look section */
|
||||
|
||||
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;
|
||||
struct t_config_option *irc_config_look_color_pv_nick_like_channel;
|
||||
|
@ -1791,6 +1792,13 @@ irc_config_init ()
|
|||
return 0;
|
||||
}
|
||||
|
||||
irc_config_look_color_nicks_in_names = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"color_nicks_in_names", "boolean",
|
||||
N_("use nick color in output of /names (or list of nicks displayed "
|
||||
"when joining a channel)"),
|
||||
NULL, 0, 0, "off", NULL, 0, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
irc_config_look_color_nicks_in_nicklist = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"color_nicks_in_nicklist", "boolean",
|
||||
|
|
|
@ -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_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;
|
||||
extern struct t_config_option *irc_config_look_color_pv_nick_like_channel;
|
||||
|
|
|
@ -3539,7 +3539,7 @@ IRC_PROTOCOL_CALLBACK(366)
|
|||
struct t_config_option *ptr_option;
|
||||
int num_nicks, num_op, num_halfop, num_voice, num_normal, length, i;
|
||||
char *string;
|
||||
const char *prefix;
|
||||
const char *prefix, *nickname;
|
||||
|
||||
/*
|
||||
* 366 message looks like:
|
||||
|
@ -3568,7 +3568,7 @@ IRC_PROTOCOL_CALLBACK(366)
|
|||
length +=
|
||||
((ptr_option) ? strlen (weechat_color (weechat_config_string (ptr_option))) : 0) +
|
||||
strlen (weechat_infolist_string (infolist, "prefix")) +
|
||||
strlen (IRC_COLOR_CHAT) +
|
||||
16 + /* nick color */
|
||||
strlen (weechat_infolist_string (infolist, "name")) + 1;
|
||||
}
|
||||
}
|
||||
|
@ -3597,8 +3597,17 @@ IRC_PROTOCOL_CALLBACK(366)
|
|||
strcat (string, weechat_color (weechat_config_string (ptr_option)));
|
||||
strcat (string, prefix);
|
||||
}
|
||||
strcat (string, IRC_COLOR_CHAT);
|
||||
strcat (string, weechat_infolist_string (infolist, "name"));
|
||||
nickname = weechat_infolist_string (infolist, "name");
|
||||
if (weechat_config_boolean (irc_config_look_color_nicks_in_names))
|
||||
{
|
||||
if (weechat_strcasecmp (nickname, server->nick) == 0)
|
||||
strcat (string, IRC_COLOR_CHAT_NICK_SELF);
|
||||
else
|
||||
strcat (string, irc_nick_find_color (nickname));
|
||||
}
|
||||
else
|
||||
strcat (string, IRC_COLOR_CHAT);
|
||||
strcat (string, nickname);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue