0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd: Minor cleanup.

This commit is contained in:
Jason Volk 2018-08-17 10:55:32 -07:00
parent e1c5e55737
commit e8e8d282b2

View file

@ -242,22 +242,9 @@ ircd::uptime()
return seconds(ircd::time() - info::startup_time);
}
template<>
decltype(ircd::runlevel_changed::list)
ircd::util::instance_list<ircd::runlevel_changed>::list
{};
decltype(ircd::runlevel_changed::dock)
ircd::runlevel_changed::dock
{};
ircd::runlevel_changed::runlevel_changed(handler function)
:handler{std::move(function)}
{}
ircd::runlevel_changed::~runlevel_changed()
noexcept
{}
//
// runlevel
//
/// Sets the runlevel of IRCd and notifies users. This should never be called
/// manually/directly, as it doesn't trigger a runlevel change itself, it just
@ -333,3 +320,28 @@ ircd::reflect(const enum runlevel &level)
return "??????";
}
//
// runlevel_changed
//
template<>
decltype(ircd::runlevel_changed::list)
ircd::util::instance_list<ircd::runlevel_changed>::list
{};
decltype(ircd::runlevel_changed::dock)
ircd::runlevel_changed::dock
{};
//
// runlevel_changed::runlevel_changed
//
ircd::runlevel_changed::runlevel_changed(handler function)
:handler{std::move(function)}
{}
ircd::runlevel_changed::~runlevel_changed()
noexcept
{}