From a5fc0da690ea62c3a76ca2cceaa2ab344a93fce3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 27 Aug 2024 14:09:21 +0100 Subject: Fix the case of some InspIRCd class member variables. --- src/inspircd.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 94d19f80f..882cb2e79 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -377,12 +377,12 @@ namespace void InspIRCd::Cleanup() { // Close all listening sockets - for (auto* port : ports) + for (auto* port : Ports) { port->Cull(); delete port; } - ports.clear(); + Ports.clear(); // Tell modules that we're shutting down. const std::string quitmsg = "Server shutting down"; @@ -434,12 +434,11 @@ void InspIRCd::WritePID() } InspIRCd::InspIRCd(int argc, char** argv) + : StartTime(time(NULL)) { ServerInstance = this; UpdateTime(); - this->startup_time = Time(); - IncreaseCoreDumpSize(); SocketEngine::Init(); -- cgit v1.3.1-10-gc9f91