aboutsummaryrefslogtreecommitdiffstats
path: root/src/server.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-29 15:48:47 +0100
committerGravatar Sadie Powell2026-03-29 17:38:40 +0100
commitaed47513a5410a10ac9b477c621fbce425593c7f (patch)
treed362cc0f0c5a8ae1ae9e7d50e83e553391b14071 /src/server.cpp
parentFix building on older versions of Clang. (diff)
Move service types to their own namespace.
- ServiceProvider is now Service::Provider - DataProvider is now Service::SimpleProvider (the old name does not really make sense now we don't have SERVICE_DATA and the only difference is automatic registration. - Some members of ModuleManager have been elevated to the Service namespace in case other code wants to use them.
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp
index cbd743c49..25140989b 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -53,8 +53,7 @@ void InspIRCd::Exit(int status)
SetServiceStopped(status);
#endif
this->Cleanup();
- ServerInstance = nullptr;
- delete this;
+ insp::delete_zero(ServerInstance);
exit(status);
}