From 31ceecc838eef255e266710b67bbc80685a09ca8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 23 May 2018 00:46:21 -0700 Subject: [PATCH] modules/console: Make the default_synapse a conf::item. --- modules/console.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index ba09c85fa..616b9d821 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -25,6 +25,13 @@ IRCD_MODULE } }; +conf::item +default_synapse +{ + { "name", "ircd.console.timeout" }, + { "default", 45L }, +}; + /// The first parameter for all commands. This aggregates general options /// passed to commands as well as providing the output facility with an /// ostream interface. Commands should only send output to this object. The @@ -33,7 +40,7 @@ struct opt { std::ostream &out; bool html {false}; - seconds timeout {45}; + seconds timeout {default_synapse}; string_view special; operator std::ostream &()