diff --git a/doc/de/autogen/irc_options.xml b/doc/de/autogen/irc_options.xml
index 68a554c18..b56224eec 100644
--- a/doc/de/autogen/irc_options.xml
+++ b/doc/de/autogen/irc_options.xml
@@ -302,7 +302,7 @@
type: integer
- values: 0 .. 2147483647 (default value: 5)
+ values: 0 .. 2147483647 (default value: 0)
diff --git a/doc/en/autogen/irc_options.xml b/doc/en/autogen/irc_options.xml
index 31a953d1c..9f4e7ac6f 100644
--- a/doc/en/autogen/irc_options.xml
+++ b/doc/en/autogen/irc_options.xml
@@ -302,7 +302,7 @@
type: integer
- values: 0 .. 2147483647 (default value: 5)
+ values: 0 .. 2147483647 (default value: 0)
diff --git a/doc/fr/autogen/irc_options.xml b/doc/fr/autogen/irc_options.xml
index 4cac272f5..dbbcbbb16 100644
--- a/doc/fr/autogen/irc_options.xml
+++ b/doc/fr/autogen/irc_options.xml
@@ -302,7 +302,7 @@
type: entier
- valeurs: 0 .. 2147483647 (valeur par défaut: 5)
+ valeurs: 0 .. 2147483647 (valeur par défaut: 0)
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 20cf063bc..ad4859643 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -1221,7 +1221,7 @@ irc_config_init ()
"lag_disconnect", "integer",
N_("disconnect after important lag (in minutes, 0 = never "
"disconnect)"),
- NULL, 0, INT_MAX, "5", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
+ NULL, 0, INT_MAX, "0", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
irc_config_network_anti_flood = weechat_config_new_option (
irc_config_file, ptr_section,
"anti_flood", "integer",