mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +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
|
/// 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 &()
|
||||||
|
|
Loading…
Reference in a new issue