diff --git a/ChangeLog.adoc b/ChangeLog.adoc index fe4710f05..e76810c04 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -22,6 +22,7 @@ New features:: * buflist: increase max number of buflist items from 3 to 5 (issue #1703) * fset: add variable `allowed_values` in options, add options fset.color.allowed_values and fset.color.allowed_values_selected * fset: allow long type name in type filter + * irc: compute color in case insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name (issue #194) * irc: add buffer for /list reply, add options irc.color.list_buffer_line_selected, irc.color.list_buffer_line_selected_bg, irc.look.list_buffer_sort, irc.look.list_buffer_scroll_horizontal, irc.look.new_list_position, irc.look.list_buffer_topic_strip_colors (issue #1972) * irc: display commands 716/717 in private buffer (if present) (issue #146) * irc: create default options irc.ctcp.* when file irc.conf is created (issue #1974) diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc index 6512201d9..c646e66d3 100644 --- a/ReleaseNotes.adoc +++ b/ReleaseNotes.adoc @@ -59,6 +59,36 @@ back with the two following commands: They will then be advertised in reply to "CTCP CLIENTINFO", which is now built dynamically with these options. +[[v4.1.0_info_irc_nick_color]] +=== Infos irc_nick_color and irc_nick_color_name + +The infos irc_nick_color and irc_nick_color_name, that were deprecated since +version 1.5 are now used again, with a change in parameter: the server is now +optional before the nick: "server,nick". + +The nick is first converted to lower case, following the value of CASEMAPPING +on the server, then hashed to compute the color. + +That means the color for a nick is now case insensitive (in the way IRC servers +are case insensitive, so with a limited range of chars only). + +If a script was using this info with a comma in nickname (which should not happen +anyway), this is now interpreted as the server name, and the script must be +modified. + +Anyway, it is recommended to always give the server name to respect the +CASEMAPPING of the server and prevent any issue with a comma in the nickname. + +For example nick color of "alice" and "ALICE" is now always guaranteed to be the +same: + +---- +# with server name (recommended) +weechat.info_get("irc_nick_color", "libera,alice") == weechat.info_get("irc_nick_color", "libera,ALICE") +weechat.info_get("irc_nick_color_name", "libera,alice") == weechat.info_get("irc_nick_color_name", "libera,ALICE") + +# without server name (allowed but not recommended, kept for compatibility) +weechat.info_get("irc_nick_color", "alice") == weechat.info_get("irc_nick_color", "ALICE") +weechat.info_get("irc_nick_color_name", "alice") == weechat.info_get("irc_nick_color_name", "ALICE") +---- + [[v4.1.0_fset_allowed_values]] === Allowed values for options on fset buffer diff --git a/po/cs.po b/po/cs.po index 08a392189..275944824 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-08-22 09:26+0200\n" +"POT-Creation-Date: 2023-08-24 09:00+0200\n" "PO-Revision-Date: 2023-06-26 21:34+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -9689,16 +9689,15 @@ msgid "IRC host (like `:nick!name@server.com`)" msgstr "IRC host (jako `:nick!name@server.com`)" msgid "" -"get nick color code (*deprecated* since version 1.5, replaced by " -"\"nick_color\")" +"get nick color code (nick is first converted to lower case, following the " +"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server " +"is not given)" msgstr "" -msgid "nickname" -msgstr "přezdívka" - msgid "" -"get nick color name (*deprecated* since version 1.5, replaced by " -"\"nick_color_name\")" +"get nick color name (nick is first converted to lower case, following the " +"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server " +"is not given)" msgstr "" msgid "get buffer pointer for an IRC server/channel/nick" @@ -14318,6 +14317,9 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)" +#~ msgid "nickname" +#~ msgstr "přezdívka" + #, fuzzy #~ msgid "color for selected line" #~ msgstr "sekce konfigu" diff --git a/po/de.po b/po/de.po index 47007da2d..88ef27f05 100644 --- a/po/de.po +++ b/po/de.po @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-08-22 09:26+0200\n" +"POT-Creation-Date: 2023-08-24 09:00+0200\n" "PO-Revision-Date: 2023-08-22 11:30+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -5648,13 +5648,12 @@ msgstr "" "\"%s\": %s" #, c-format -#| msgid "%sWarning: %s, line %d: ignoring invalid value for option: %s" msgid "" "%sWarning: %s, line %d: ignoring invalid value for option in section \"%s\": " "%s" msgstr "" -"%sWarnung: %s, Zeile %d: ungültigen Wert ignoriert für Option in Sektion \"" -"%s\": %s" +"%sWarnung: %s, Zeile %d: ungültigen Wert ignoriert für Option in Sektion " +"\"%s\": %s" #, c-format msgid "Reloading configuration file %s" @@ -6655,87 +6654,6 @@ msgstr "" msgid "bar item with list of buffers" msgstr "Bar-Item mit der Liste von Buffern" -#| msgid "" -#| " enable: enable buflist\n" -#| "disable: disable buflist\n" -#| " toggle: toggle buflist\n" -#| " bar: add the \"buflist\" bar\n" -#| "refresh: force the refresh of the bar items (buflist, buflist2 and " -#| "buflist3)\n" -#| "\n" -#| "The lines with buffers are displayed using string evaluation (see /help " -#| "eval for the format), with these options:\n" -#| " - buflist.look.display_conditions: conditions to display a buffer in " -#| "the list\n" -#| " - buflist.format.buffer: format for a buffer which is not current " -#| "buffer\n" -#| " - buflist.format.buffer_current: format for the current buffer\n" -#| "\n" -#| "The following variables can be used in these options:\n" -#| " - bar item data (see hdata \"bar_item\" in API doc for a complete " -#| "list), for example:\n" -#| " - ${bar_item.name}\n" -#| " - window data, where the bar item is displayed (there's no window in " -#| "root bars, see hdata \"window\" in API doc for a complete list), for " -#| "example:\n" -#| " - ${window.number}\n" -#| " - ${window.buffer.full_name}\n" -#| " - buffer data (see hdata \"buffer\" in API doc for a complete list), " -#| "for example:\n" -#| " - ${buffer.number}\n" -#| " - ${buffer.name}\n" -#| " - ${buffer.full_name}\n" -#| " - ${buffer.short_name}\n" -#| " - ${buffer.nicklist_nicks_count}\n" -#| " - irc_server: IRC server data, defined only on an IRC buffer (see hdata " -#| "\"irc_server\" in API doc)\n" -#| " - irc_channel: IRC channel data, defined only on an IRC channel buffer " -#| "(see hdata \"irc_channel\" in API doc)\n" -#| " - extra variables added by buflist for convenience:\n" -#| " - ${format_buffer}: the evaluated value of option buflist.format." -#| "buffer; this can be used in option buflist.format.buffer_current to just " -#| "change the background color for example\n" -#| " - ${current_buffer}: a boolean (\"0\" or \"1\"), \"1\" if this is the " -#| "current buffer; it can be used in a condition: ${if:" -#| "${current_buffer}?...:...}\n" -#| " - ${merged}: a boolean (\"0\" or \"1\"), \"1\" if the buffer is " -#| "merged with at least another buffer; it can be used in a condition: ${if:" -#| "${merged}?...:...}\n" -#| " - ${format_number}: indented number with separator (evaluation of " -#| "option buflist.format.number)\n" -#| " - ${number}: indented number, for example \" 1\" if there are between " -#| "10 and 99 buffers; for merged buffers, this variable is set with number " -#| "for the first buffer and spaces for the next buffers with same number\n" -#| " - ${number2}: indented number, for example \" 1\" if there are " -#| "between 10 and 99 buffers\n" -#| " - ${number_displayed}: \"1\" if the number is displayed, otherwise " -#| "\"0\"\n" -#| " - ${indent}: indentation for name (channel and private buffers are " -#| "indented) (evaluation of option buflist.format.indent)\n" -#| " - ${format_nick_prefix}: colored nick prefix for a channel " -#| "(evaluation of option buflist.format.nick_prefix)\n" -#| " - ${color_nick_prefix}: color of nick prefix for a channel (set only " -#| "if the option buflist.look.nick_prefix is enabled)\n" -#| " - ${nick_prefix}: nick prefix for a channel (set only if the option " -#| "buflist.look.nick_prefix is enabled)\n" -#| " - ${format_name}: formatted name (evaluation of option buflist.format." -#| "name)\n" -#| " - ${name}: the short name (if set), with a fallback on the name\n" -#| " - ${color_hotlist}: the color depending on the highest hotlist level " -#| "for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx " -#| "is the level)\n" -#| " - ${format_hotlist}: the formatted hotlist (evaluation of option " -#| "buflist.format.hotlist)\n" -#| " - ${hotlist}: the raw hotlist\n" -#| " - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or " -#| "\"highlight\"\n" -#| " - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = " -#| "private, 3 = highlight\n" -#| " - ${format_lag}: the lag for an IRC server buffer, empty if there's " -#| "no lag (evaluation of option buflist.format.lag)\n" -#| " - ${format_tls_version}: indicator of TLS version for a server " -#| "buffer, empty for channels (evaluation of option buflist.format." -#| "tls_version)" msgid "" " enable: enable buflist\n" "disable: disable buflist\n" @@ -7106,15 +7024,12 @@ msgstr "" "Trennzeichen for counts in hotlist (Hinweis: Inhalt wird evaluiert, siehe /" "help buflist)" -#| msgid "" -#| "string displayed to indent channel and private buffers (note: content is " -#| "evaluated, see /help buflist)" msgid "" "string displayed to indent channel, private and list buffers (note: content " "is evaluated, see /help buflist)" msgstr "" -"Zeichen, welches zum Einrücken von Kanal-, Privat- und List-Buffern genutzt" -" wird (Hinweis: Inhalt ist evaluiert, siehe /help buflist)" +"Zeichen, welches zum Einrücken von Kanal-, Privat- und List-Buffern genutzt " +"wird (Hinweis: Inhalt ist evaluiert, siehe /help buflist)" msgid "" "format for lag on an IRC server buffer (note: content is evaluated, see /" @@ -12142,21 +12057,16 @@ msgid "IRC host (like `:nick!name@server.com`)" msgstr "IRC host (in der Form `:nick!name@server.com`)" msgid "" -"get nick color code (*deprecated* since version 1.5, replaced by " -"\"nick_color\")" +"get nick color code (nick is first converted to lower case, following the " +"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server " +"is not given)" msgstr "" -"erhalte nick color code (*veraltet* ab Version 1.5, wird ersetzt durch " -"\"nick_color\")" - -msgid "nickname" -msgstr "Nickname" msgid "" -"get nick color name (*deprecated* since version 1.5, replaced by " -"\"nick_color_name\")" +"get nick color name (nick is first converted to lower case, following the " +"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server " +"is not given)" msgstr "" -"erhalte nick color name (*veraltet* ab Version 1.5, wird ersetzt durch " -"\"nick_color_name\")" msgid "get buffer pointer for an IRC server/channel/nick" msgstr "holt Buffer Pointer für einen IRC Server/Kanal/Nick" @@ -15346,11 +15256,6 @@ msgstr "" msgid "WeeChat script manager" msgstr "WeeChat Skriptmanager" -#| msgid "" -#| "list [-o|-ol|-i|-il] || search || show