1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

irc: fix unit of server option anti_flood from seconds to milliseconds in output of /server listfull

This commit is contained in:
Sébastien Helleu
2026-01-30 13:49:23 +01:00
parent 250db946b0
commit ef5f197a4a
16 changed files with 123 additions and 17 deletions
+1
View File
@@ -11,6 +11,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
### Fixed
- core: fix buffer size in function util_parse_time, causing buffer overflow error in unit tests
- irc: fix unit of server option `anti_flood` from seconds to milliseconds in output of `/server listfull`
- irc: fix creation of irc.msgbuffer option without a server name
- irc: ignore self join if the channel is already joined ([#2291](https://github.com/weechat/weechat/issues/2291))
+10 -1
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:48+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8733,6 +8733,15 @@ msgstr[0] "sekunda"
msgstr[1] "sekundy"
msgstr[2] "sekund"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "sekunda"
msgstr[1] "sekundy"
msgstr[2] "sekund"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minuta"
+9 -1
View File
@@ -28,7 +28,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:49+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -9957,6 +9957,14 @@ msgid_plural "seconds"
msgstr[0] "Sekunde"
msgstr[1] "Sekunden"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "Sekunde"
msgstr[1] "Sekunden"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "Minute"
+9 -1
View File
@@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:49+0100\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8929,6 +8929,14 @@ msgid_plural "seconds"
msgstr[0] "segundo"
msgstr[1] "segundos"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "segundo"
msgstr[1] "segundos"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minuto"
+7 -2
View File
@@ -23,8 +23,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"PO-Revision-Date: 2026-01-21 21:17+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-30 13:46+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -9791,6 +9791,11 @@ msgid_plural "seconds"
msgstr[0] "seconde"
msgstr[1] "secondes"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "milliseconde"
msgstr[1] "millisecondes"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minute"
+7 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:50+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8344,6 +8344,12 @@ msgid_plural "seconds"
msgstr[0] "másodperc"
msgstr[1] "másodperc"
#, fuzzy
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "másodperc"
msgstr[1] "másodperc"
#, fuzzy
msgid "minute"
msgid_plural "minutes"
+9 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:50+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8913,6 +8913,14 @@ msgid_plural "seconds"
msgstr[0] "secondo"
msgstr[1] "secondi"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "secondo"
msgstr[1] "secondi"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minuto"
+8 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:51+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -9228,6 +9228,13 @@ msgid "second"
msgid_plural "seconds"
msgstr[0] "秒"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "秒"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "分"
+10 -1
View File
@@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:51+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9466,6 +9466,15 @@ msgstr[0] "sekunda"
msgstr[1] "sekundy"
msgstr[2] "sekund"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "sekunda"
msgstr[1] "sekundy"
msgstr[2] "sekund"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minutę"
+9 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:51+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -9191,6 +9191,14 @@ msgid_plural "seconds"
msgstr[0] "segundo"
msgstr[1] "segundos"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "segundo"
msgstr[1] "segundos"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minuto"
+9 -1
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:51+0100\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8778,6 +8778,14 @@ msgid_plural "seconds"
msgstr[0] "segundo"
msgstr[1] "segundos"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "segundo"
msgstr[1] "segundos"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "minuto"
+8 -1
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:52+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8387,6 +8387,13 @@ msgstr[0] "секунда"
msgstr[1] "секунда"
msgstr[2] "секунда"
#, fuzzy
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "секунда"
msgstr[1] "секунда"
msgstr[2] "секунда"
#, fuzzy
msgid "minute"
msgid_plural "minutes"
+10 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:52+0100\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9474,6 +9474,15 @@ msgstr[0] "секунда"
msgstr[1] "секунде"
msgstr[2] "секунди"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "секунда"
msgstr[1] "секунде"
msgstr[2] "секунди"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "минут"
+9 -1
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2026-01-21 20:52+0100\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9232,6 +9232,14 @@ msgid_plural "seconds"
msgstr[0] "saniye"
msgstr[1] "saniye"
#, fuzzy
#| msgid "second"
#| msgid_plural "seconds"
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] "saniye"
msgstr[1] "saniye"
msgid "minute"
msgid_plural "minutes"
msgstr[0] "dakika"
+6 -1
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2026-01-21 20:45+0100\n"
"POT-Creation-Date: 2026-01-30 13:45+0100\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7801,6 +7801,11 @@ msgid_plural "seconds"
msgstr[0] ""
msgstr[1] ""
msgid "millisecond"
msgid_plural "milliseconds"
msgstr[0] ""
msgstr[1] ""
msgid "minute"
msgid_plural "minutes"
msgstr[0] ""
+2 -2
View File
@@ -5615,12 +5615,12 @@ irc_command_display_server (struct t_irc_server *server, int with_detail)
if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_ANTI_FLOOD]))
weechat_printf (NULL, " anti_flood . . . . . : (%d %s)",
IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_ANTI_FLOOD),
NG_("second", "seconds", IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_ANTI_FLOOD)));
NG_("millisecond", "milliseconds", IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_ANTI_FLOOD)));
else
weechat_printf (NULL, " anti_flood . . . . . : %s%d %s",
IRC_COLOR_CHAT_VALUE,
weechat_config_integer (server->options[IRC_SERVER_OPTION_ANTI_FLOOD]),
NG_("second", "seconds", weechat_config_integer (server->options[IRC_SERVER_OPTION_ANTI_FLOOD])));
NG_("millisecond", "milliseconds", weechat_config_integer (server->options[IRC_SERVER_OPTION_ANTI_FLOOD])));
/* away_check */
if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_AWAY_CHECK]))
weechat_printf (NULL, " away_check . . . . . : (%d %s)",