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:
parent
120e296756
commit
31ceecc838
1 changed files with 8 additions and 1 deletions
|
@ -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 &()
|
||||
|
|
Loading…
Reference in a new issue