Skip to content

Commit

Permalink
irc: add server option "autojoin_delay" (closes #862)
Browse files Browse the repository at this point in the history
The server option "autojoin_delay" adds a delay before autojoin.

The server option "command_delay" is now used to add a delay before the
execution of the command.

On upgrade from an old version, the option "command_delay" is copied to
"autojoin_delay" (in old versions, "command_delay" was applied after the
execution of command and before the autojoin).
  • Loading branch information
flashcode committed Feb 11, 2024
1 parent f153b6e commit 0cfc61a
Show file tree
Hide file tree
Showing 23 changed files with 408 additions and 178 deletions.
1 change: 1 addition & 0 deletions ChangeLog.adoc
Expand Up @@ -19,6 +19,7 @@ New features::
* core: use function util_strftimeval in evaluation of expression `date:xxx`
* api: add support of specifier `%!` for timestamp in function util_strftimeval
* api: add support of base64url in encode/decode functions
* irc: add server option "autojoin_delay" (delay before autojoin), use option "command_delay" before execution of the command (issue #862)
* relay: add "api" protocol (HTTP REST API), add option relay.look.display_clients, change option type relay.look.auto_open_buffer to string, rename option relay.weechat.commands to relay.network.commands, add option relay.network.time_window (issue #2066)
* relay: add support of websocket extension "permessage-deflate" (issue #1549)

Expand Down
19 changes: 12 additions & 7 deletions po/cs.po
Expand Up @@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
Expand Down Expand Up @@ -10138,6 +10138,11 @@ msgstr ""
"pomocí \";\", použijte \"\\;\" pro středník, speciální proměnné $nick, "
"$channel a $server jsou přepsány svou hodnotou)"

#, fuzzy
#| msgid "delay (in seconds) before autorejoin (after kick)"
msgid "delay (in seconds) before execution of command"
msgstr "doba (v sekundách) před novým znovupřipojením (po vykopnutí)"

#, fuzzy
msgid ""
"command(s) to run after connection to server and before auto-join of "
Expand All @@ -10153,8 +10158,8 @@ msgstr ""

#, fuzzy
msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"počkání (v sekundách) po spuštění příkazu (například: dád nějaký čas pro "
"autorizaci)"
Expand Down Expand Up @@ -14958,14 +14963,14 @@ msgid ""
"\"addreplace\" to overwrite it)"
msgstr ""

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%sChyba: selhalo vytvoření pole \"%s\""

#, fuzzy, c-format
msgid "Trigger \"%s\" created"
msgstr "Pole \"%s\" vytvořeno"

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%sChyba: selhalo vytvoření pole \"%s\""

#, fuzzy, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%s%s: server \"%s\" nenalezen"
Expand Down
26 changes: 19 additions & 7 deletions po/de.po
Expand Up @@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2024-01-27 14:34+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
Expand Down Expand Up @@ -11201,6 +11201,13 @@ msgstr ""
"wird evaluiert, siehe /help eval; Serveroptionen sind mittels ${irc_server."
"xxx} evaluiert und ${server} wird durch den eigentlichen Servernamen ersetzt)"

#, fuzzy
#| msgid "delay (in seconds) before autorejoin (after kick)"
msgid "delay (in seconds) before execution of command"
msgstr ""
"Wartezeit, in Sekunden, die verstreichen soll bevor man den Kanal "
"automatisch erneut betritt (nachdem man rausgeworfen wurde)"

msgid ""
"command(s) to run after connection to server and before auto-join of "
"channels (many commands can be separated by \";\", use \"\\;\" for a "
Expand All @@ -11217,9 +11224,14 @@ msgstr ""
"eval; Serveroptionen sind mittels ${irc_server.xxx} evaluiert und ${server} "
"wird durch den eigentlichen Servernamen ersetzt)"

#, fuzzy
#| msgid ""
#| "delay (in seconds) after execution of command and before auto-join of "
#| "channels (example: give some time for authentication before joining "
#| "channels)"
msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"Wartezeit (in Sekunden) nach Ausführung des Befehls und bevor Kanäle "
"automatisch betreten werden (Beispiel: es wird eine gewisse Zeit gewartet, "
Expand Down Expand Up @@ -16469,14 +16481,14 @@ msgstr ""
"%s%s: Trigger \"%s\" existiert schon (wähle einen anderen Namen oder nutze "
"die Option \"addreplace\" um vorhandenen Trigger zu überschreiben)"

#, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s%s: Trigger \"%s\" konnte nicht erstellt werden"

#, c-format
msgid "Trigger \"%s\" created"
msgstr "Trigger \"%s\" erstellt"

#, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s%s: Trigger \"%s\" konnte nicht erstellt werden"

#, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%s%s: Trigger, \"%s\", nicht gefunden"
Expand Down
21 changes: 14 additions & 7 deletions po/es.po
Expand Up @@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
Expand Down Expand Up @@ -10361,6 +10361,13 @@ msgstr ""
"variables especiales $nick, $channel y $server son reemplazados por sus "
"valores)"

#, fuzzy
#| msgid "delay (in seconds) before autorejoin (after kick)"
msgid "delay (in seconds) before execution of command"
msgstr ""
"espera (en segundos) antes de unirse automáticamente (después de ser "
"expulsado)"

#, fuzzy
msgid ""
"command(s) to run after connection to server and before auto-join of "
Expand All @@ -10377,8 +10384,8 @@ msgstr ""

#, fuzzy
msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"espera (en segundos) después de que el comando sea ejecutado (ejemplo: dar "
"algo de tiempo para la autenticación)"
Expand Down Expand Up @@ -15250,14 +15257,14 @@ msgid ""
"\"addreplace\" to overwrite it)"
msgstr ""

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%sError: no se pudo crear la barra \"%s\""

#, fuzzy, c-format
msgid "Trigger \"%s\" created"
msgstr "Barra \"%s\" creada"

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%sError: no se pudo crear la barra \"%s\""

#, fuzzy, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%sTecla \"%s\" no encontrada"
Expand Down
24 changes: 13 additions & 11 deletions po/fr.po
Expand Up @@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"PO-Revision-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2024-02-11 08:55+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
Expand Down Expand Up @@ -10997,6 +10997,9 @@ msgstr ""
"sont évaluées avec ${irc_server.xxx} et ${server} est remplacé par le nom du "
"serveur)"

msgid "delay (in seconds) before execution of command"
msgstr "délai (en secondes) avant l'exécution de la commande"

msgid ""
"command(s) to run after connection to server and before auto-join of "
"channels (many commands can be separated by \";\", use \"\\;\" for a "
Expand All @@ -11013,12 +11016,11 @@ msgstr ""
"${irc_server.xxx} et ${server} est remplacé par le nom du serveur)"

msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"délai (en secondes) après exécution de la commande et avant le \"join\" "
"automatique des canaux (exemple : donner du temps pour l'authentification "
"avant de rejoindre les canaux)"
"délai (en secondes) avant le \"join\" automatique des canaux (exemple : "
"donner du temps pour l'authentification avant de rejoindre les canaux)"

msgid ""
"comma separated list of channels to join after connection to server (and "
Expand Down Expand Up @@ -16115,14 +16117,14 @@ msgstr ""
"%s%s : le trigger \"%s\" existe déjà (utilisez un autre nom ou utilisez "
"l'option \"addreplace\" pour l'écraser)"

#, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s%s : impossible de créer le trigger \"%s\""

#, c-format
msgid "Trigger \"%s\" created"
msgstr "Trigger \"%s\" créé"

#, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s%s : impossible de créer le trigger \"%s\""

#, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%s%s : trigger \"%s\" non trouvé"
Expand Down
18 changes: 11 additions & 7 deletions po/hu.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
Expand Down Expand Up @@ -9750,6 +9750,10 @@ msgstr ""
"pontosvesszőtszeretne írni, a $nick, $channel és $server szavak helyére azok "
"értéke kerül)"

#, fuzzy
msgid "delay (in seconds) before execution of command"
msgstr "két újracsatlakozási próba közti szünet (másodpercben)"

#, fuzzy
msgid ""
"command(s) to run after connection to server and before auto-join of "
Expand All @@ -9766,8 +9770,8 @@ msgstr ""

#, fuzzy
msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"szünet (másodpercben) a parancs futtatása után (például: hagyni némi időt az "
"azonosításra)"
Expand Down Expand Up @@ -14361,14 +14365,14 @@ msgid ""
"\"addreplace\" to overwrite it)"
msgstr ""

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s nem sikerült a modul opciókat elmenteni\n"

#, fuzzy, c-format
msgid "Trigger \"%s\" created"
msgstr "A \"%s\" => \"%s\" aliasz elkészült\n"

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s nem sikerült a modul opciókat elmenteni\n"

#, fuzzy, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%s a \"%s\" szerver nem található\n"
Expand Down
19 changes: 12 additions & 7 deletions po/it.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
Expand Down Expand Up @@ -10360,6 +10360,11 @@ msgstr ""
"speciali $nick, $canale e $server vengono sostituite dai loro valori) (nota: "
"il contenuto viene valutato, consultare /help eval)"

#, fuzzy
#| msgid "delay (in seconds) before autorejoin (after kick)"
msgid "delay (in seconds) before execution of command"
msgstr "ritardo (in secondi) prima di rientrare automaticamente (dopo il kick)"

#, fuzzy
msgid ""
"command(s) to run after connection to server and before auto-join of "
Expand All @@ -10376,8 +10381,8 @@ msgstr ""

#, fuzzy
msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"ritardo (in secondi) dopo l'esecuzione del comando (esempio: fornire il "
"tempo per l'autenticazione)"
Expand Down Expand Up @@ -15309,14 +15314,14 @@ msgid ""
"\"addreplace\" to overwrite it)"
msgstr ""

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%sErrore: creazione della barra \"%s\" fallita"

#, fuzzy, c-format
msgid "Trigger \"%s\" created"
msgstr "Barra \"%s\" creata"

#, fuzzy, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%sErrore: creazione della barra \"%s\" fallita"

#, fuzzy, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%sTasto \"%s\" non trovato"
Expand Down
24 changes: 17 additions & 7 deletions po/ja.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-02-01 21:36+0100\n"
"POT-Creation-Date: 2024-02-11 08:54+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
Expand Down Expand Up @@ -10691,6 +10691,11 @@ msgstr ""
"(注意: 値は評価されます、/help eval を参照してください; ここで ${irc_server."
"xxx} はサーバオプション、${server} はサーバ名を意味します)"

#, fuzzy
#| msgid "delay (in seconds) before autorejoin (after kick)"
msgid "delay (in seconds) before execution of command"
msgstr "自動再参加前の遅延時間 (秒単位) (キック後)"

#, fuzzy
msgid ""
"command(s) to run after connection to server and before auto-join of "
Expand All @@ -10706,9 +10711,14 @@ msgstr ""
"は評価されます、/help eval を参照してください; ここで ${irc_server.xxx} は"
"サーバオプション、${server} はサーバ名を意味します)"

#, fuzzy
#| msgid ""
#| "delay (in seconds) after execution of command and before auto-join of "
#| "channels (example: give some time for authentication before joining "
#| "channels)"
msgid ""
"delay (in seconds) after execution of command and before auto-join of "
"channels (example: give some time for authentication before joining channels)"
"delay (in seconds) before auto-join of channels (example: give some time for "
"authentication before joining channels)"
msgstr ""
"コマンドを実行して、チャンネルに自動参加するまでの遅延時間 (秒単位) (例: 認証"
"に時間がかかる場合にチャンネル参加前に少し時間を空ける)"
Expand Down Expand Up @@ -15744,14 +15754,14 @@ msgstr ""
"%s%s: トリガ \"%s\" は既に存在しています (他の名前を選ぶか、\"addreplace\" オ"
"プションで上書きを有効化してください)"

#, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s%s: トリガ \"%s\" の作成に失敗しました"

#, c-format
msgid "Trigger \"%s\" created"
msgstr "トリガ \"%s\" が作成されました"

#, c-format
msgid "%s%s: failed to create trigger \"%s\""
msgstr "%s%s: トリガ \"%s\" の作成に失敗しました"

#, c-format
msgid "%s%s: trigger \"%s\" not found"
msgstr "%s%s: トリガ \"%s\" が見つかりません"
Expand Down

0 comments on commit 0cfc61a

Please sign in to comment.