diff options
| author | 2026-06-19 16:25:36 +0100 | |
|---|---|---|
| committer | 2026-06-19 16:43:54 +0100 | |
| commit | ebcce68b6095ca9766641ce5dc00aae01d61de06 (patch) | |
| tree | 1031bb5de5cbfd3be5ce37470d593bbe30154c95 /src/modules.cpp | |
| parent | Rework error reporting and shutting down. (diff) | |
Move server restart logic to the core.
- Properly clean up the process with Cleanup() instead of using
- DieRestart.
- Use close_range on modern Linux instead of the CLOEXEC hack.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index b465a5044..413757380 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -172,7 +172,7 @@ void Module::OnChangeRemoteAddress(LocalUser*) { DetachEvent(I_OnChangeRemoteAd void Module::OnServiceAdd(Service::Provider&) { DetachEvent(I_OnServiceAdd); } void Module::OnServiceDel(Service::Provider&) { DetachEvent(I_OnServiceDel); } ModResult Module::OnUserWrite(LocalUser*, ClientProtocol::Message&) { DetachEvent(I_OnUserWrite); return MOD_RES_PASSTHRU; } -void Module::OnShutdown(const std::string& reason) { DetachEvent(I_OnShutdown); } +void Module::OnShutdown(const std::string& reason, bool) { DetachEvent(I_OnShutdown); } ModResult Module::OnPreOperLogin(LocalUser*, const std::shared_ptr<OperAccount>&, bool) { DetachEvent(I_OnPreOperLogin); return MOD_RES_PASSTHRU; } void Module::OnOperLogin(User*, const std::shared_ptr<OperAccount>&, bool) { DetachEvent(I_OnOperLogin); } void Module::OnPostOperLogin(User*, bool) { DetachEvent(I_OnPostOperLogin); } |
