diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-12 18:54:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-12 18:56:40 +0200 |
commit | 4f4f32b9edf5b575bf28d22d753a9d7689e80ff0 (patch) | |
tree | be55d2a38626a1370c0833a2b72c7d7107e23861 | |
parent | 2c303d1698f92b7d0489f180a4531fe5df104b3a (diff) | |
download | weechat-4f4f32b9edf5b575bf28d22d753a9d7689e80ff0.zip |
relay: increase default limits for IRC backlog options
Default value is changed for the following options:
* relay.irc.backlog_max_minutes: from 1440 to 0 (unlimited)
* relay.irc.backlog_max_number: from 256 to 1024
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | doc/de/includes/autogen_user_options.de.adoc | 4 | ||||
-rw-r--r-- | doc/en/includes/autogen_user_options.en.adoc | 4 | ||||
-rw-r--r-- | doc/fr/includes/autogen_user_options.fr.adoc | 4 | ||||
-rw-r--r-- | doc/it/includes/autogen_user_options.it.adoc | 4 | ||||
-rw-r--r-- | doc/ja/includes/autogen_user_options.ja.adoc | 4 | ||||
-rw-r--r-- | doc/pl/includes/autogen_user_options.pl.adoc | 4 | ||||
-rw-r--r-- | src/plugins/relay/relay-config.c | 4 |
8 files changed, 15 insertions, 14 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index f731bd239..3965458b4 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -34,6 +34,7 @@ New features:: * buflist: add default key kbd:[Alt+Shift+B] to toggle buflist * buflist: add options enable/disable/toggle in command /buflist * buflist: evaluate option buflist.look.sort so that sort can be customized for each of the three buflist bar items (issue #1465) + * relay: increase default limits for IRC backlog options * relay: add command "handshake" in weechat relay protocol and nonce to prevent replay attacks, add options relay.network.password_hash_algo, relay.network.password_hash_iterations, relay.network.nonce_size (issue #1474) * relay: add command "completion" in weechat relay protocol to perform a completion on a string at a given position (issue #1484) * relay: add option relay.network.auth_timeout diff --git a/doc/de/includes/autogen_user_options.de.adoc b/doc/de/includes/autogen_user_options.de.adoc index 3b00e8373..4ddfc62aa 100644 --- a/doc/de/includes/autogen_user_options.de.adoc +++ b/doc/de/includes/autogen_user_options.de.adoc @@ -2826,13 +2826,13 @@ ** Beschreibung: pass:none[Zeitangabe, in Minuten, wie lange die Zeilen im Verlaufsspeicher für jeden IRC Channel gehalten werden sollen (0 = unbegrenzt, Beispiele: 1440 = einen Tag, 10080 = eine Woche, 43200 = einen Monat, 525600 = ein Jahr)] ** Typ: integer ** Werte: 0 .. 2147483647 -** Standardwert: `+1440+` +** Standardwert: `+0+` * [[option_relay.irc.backlog_max_number]] *relay.irc.backlog_max_number* ** Beschreibung: pass:none[maximale Anzahl an Zeilen im Verlaufsspeicher. Dies gilt für jeden IRC Channel (0: keine Zeilenbegrenzung)] ** Typ: integer ** Werte: 0 .. 2147483647 -** Standardwert: `+256+` +** Standardwert: `+1024+` * [[option_relay.irc.backlog_since_last_disconnect]] *relay.irc.backlog_since_last_disconnect* ** Beschreibung: pass:none[Verlaufsspeicher anzeigen, beginnend mit dem Client der zuletzt beendet wurde] diff --git a/doc/en/includes/autogen_user_options.en.adoc b/doc/en/includes/autogen_user_options.en.adoc index e7b6d2f12..e3f289a39 100644 --- a/doc/en/includes/autogen_user_options.en.adoc +++ b/doc/en/includes/autogen_user_options.en.adoc @@ -2826,13 +2826,13 @@ ** description: pass:none[maximum number of minutes in backlog per IRC channel (0 = unlimited, examples: 1440 = one day, 10080 = one week, 43200 = one month, 525600 = one year)] ** type: integer ** values: 0 .. 2147483647 -** default value: `+1440+` +** default value: `+0+` * [[option_relay.irc.backlog_max_number]] *relay.irc.backlog_max_number* ** description: pass:none[maximum number of lines in backlog per IRC channel (0 = unlimited)] ** type: integer ** values: 0 .. 2147483647 -** default value: `+256+` +** default value: `+1024+` * [[option_relay.irc.backlog_since_last_disconnect]] *relay.irc.backlog_since_last_disconnect* ** description: pass:none[display backlog starting from last client disconnect] diff --git a/doc/fr/includes/autogen_user_options.fr.adoc b/doc/fr/includes/autogen_user_options.fr.adoc index d68e8ec14..ea1f177bd 100644 --- a/doc/fr/includes/autogen_user_options.fr.adoc +++ b/doc/fr/includes/autogen_user_options.fr.adoc @@ -2826,13 +2826,13 @@ ** description: pass:none[nombre maximum de minutes dans l'historique par canal IRC (0 = sans limite, exemples : 1440 = une journée, 10080 = une semaine, 43200 = un mois, 525600 = une année)] ** type: entier ** valeurs: 0 .. 2147483647 -** valeur par défaut: `+1440+` +** valeur par défaut: `+0+` * [[option_relay.irc.backlog_max_number]] *relay.irc.backlog_max_number* ** description: pass:none[nombre maximum de lignes dans l'historique par canal IRC (0 = sans limite)] ** type: entier ** valeurs: 0 .. 2147483647 -** valeur par défaut: `+256+` +** valeur par défaut: `+1024+` * [[option_relay.irc.backlog_since_last_disconnect]] *relay.irc.backlog_since_last_disconnect* ** description: pass:none[afficher l'historique en démarrant depuis la dernière déconnexion du client] diff --git a/doc/it/includes/autogen_user_options.it.adoc b/doc/it/includes/autogen_user_options.it.adoc index e689283ff..daa82612e 100644 --- a/doc/it/includes/autogen_user_options.it.adoc +++ b/doc/it/includes/autogen_user_options.it.adoc @@ -2826,13 +2826,13 @@ ** descrizione: pass:none[numero massimo di minuti nella cronologia per canale IRC (0 = nessun limite, esempi: 1440 = un giorno, 10000 = una settimana; 43200 = un mese, 525600 = un anno)] ** tipo: intero ** valori: 0 .. 2147483647 -** valore predefinito: `+1440+` +** valore predefinito: `+0+` * [[option_relay.irc.backlog_max_number]] *relay.irc.backlog_max_number* ** descrizione: pass:none[numero massimo di righe nella cronologia per canale IRC (0 = nessun limite)] ** tipo: intero ** valori: 0 .. 2147483647 -** valore predefinito: `+256+` +** valore predefinito: `+1024+` * [[option_relay.irc.backlog_since_last_disconnect]] *relay.irc.backlog_since_last_disconnect* ** descrizione: pass:none[mostra la cronologia a partire dall'ultima disconnessione del client] diff --git a/doc/ja/includes/autogen_user_options.ja.adoc b/doc/ja/includes/autogen_user_options.ja.adoc index 9e145962c..804ba53bf 100644 --- a/doc/ja/includes/autogen_user_options.ja.adoc +++ b/doc/ja/includes/autogen_user_options.ja.adoc @@ -2826,13 +2826,13 @@ ** 説明: pass:none[IRC チャンネルごとのバックログの最大時間 (分) (0 = 制限無し、例: 1440 = 1 日、10080 = 1 週間、43200 = 1 ヶ月、525600 = 1 年間)] ** タイプ: 整数 ** 値: 0 .. 2147483647 -** デフォルト値: `+1440+` +** デフォルト値: `+0+` * [[option_relay.irc.backlog_max_number]] *relay.irc.backlog_max_number* ** 説明: pass:none[IRC チャンネルごとのバックログの最大行数 (0 = 制限無し)] ** タイプ: 整数 ** 値: 0 .. 2147483647 -** デフォルト値: `+256+` +** デフォルト値: `+1024+` * [[option_relay.irc.backlog_since_last_disconnect]] *relay.irc.backlog_since_last_disconnect* ** 説明: pass:none[最後にクライアントを切断した以降のバックログを表示] diff --git a/doc/pl/includes/autogen_user_options.pl.adoc b/doc/pl/includes/autogen_user_options.pl.adoc index 626e4f025..e5e251404 100644 --- a/doc/pl/includes/autogen_user_options.pl.adoc +++ b/doc/pl/includes/autogen_user_options.pl.adoc @@ -2826,13 +2826,13 @@ ** opis: pass:none[maksymalna ilość minut w historii każdego bufora dla kanału IRC (0 = bez ograniczeń, przykłady: 1440 = dzień, 10080 = tydzień, 43200 = miesiąc, 525600 = rok)] ** typ: liczba ** wartości: 0 .. 2147483647 -** domyślna wartość: `+1440+` +** domyślna wartość: `+0+` * [[option_relay.irc.backlog_max_number]] *relay.irc.backlog_max_number* ** opis: pass:none[maksymalna ilość linii w historii każdego bufora dla kanału IRC (0 = bez ograniczeń)] ** typ: liczba ** wartości: 0 .. 2147483647 -** domyślna wartość: `+256+` +** domyślna wartość: `+1024+` * [[option_relay.irc.backlog_since_last_disconnect]] *relay.irc.backlog_since_last_disconnect* ** opis: pass:none[wyświetlaj backlog zaczynając od ostatniego rozłączenia klienta] diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index b455fcf47..dd89650d0 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -1214,14 +1214,14 @@ relay_config_init () N_("maximum number of minutes in backlog per IRC channel " "(0 = unlimited, examples: 1440 = one day, 10080 = one week, " "43200 = one month, 525600 = one year)"), - NULL, 0, INT_MAX, "1440", NULL, 0, + NULL, 0, INT_MAX, "0", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); relay_config_irc_backlog_max_number = weechat_config_new_option ( relay_config_file, ptr_section, "backlog_max_number", "integer", N_("maximum number of lines in backlog per IRC channel " "(0 = unlimited)"), - NULL, 0, INT_MAX, "256", NULL, 0, + NULL, 0, INT_MAX, "1024", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); relay_config_irc_backlog_since_last_disconnect = weechat_config_new_option ( relay_config_file, ptr_section, |