0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

modules/console: Make the default_synapse a conf::item.

This commit is contained in:
Jason Volk 2018-05-23 00:46:21 -07:00
parent 120e296756
commit 31ceecc838

View file

@ -25,6 +25,13 @@ IRCD_MODULE
}
};
conf::item<seconds>
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 &()