0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 12:48:54 +02: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 /// The first parameter for all commands. This aggregates general options
/// passed to commands as well as providing the output facility with an /// passed to commands as well as providing the output facility with an
/// ostream interface. Commands should only send output to this object. The /// ostream interface. Commands should only send output to this object. The
@ -33,7 +40,7 @@ struct opt
{ {
std::ostream &out; std::ostream &out;
bool html {false}; bool html {false};
seconds timeout {45}; seconds timeout {default_synapse};
string_view special; string_view special;
operator std::ostream &() operator std::ostream &()