From 6b80d34c9f02693883549c87843f669d567b7bee Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 8 Dec 2019 21:57:11 +0000 Subject: Move XLine garbage collection to core_xline. --- src/coremods/core_xline/core_xline.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/coremods') diff --git a/src/coremods/core_xline/core_xline.cpp b/src/coremods/core_xline/core_xline.cpp index e8f045c58..2a8445897 100644 --- a/src/coremods/core_xline/core_xline.cpp +++ b/src/coremods/core_xline/core_xline.cpp @@ -93,6 +93,14 @@ class CoreModXLine : public Module return MOD_RES_DENY; } + void OnGarbageCollect() CXX11_OVERRIDE + { + // HACK: ELines are not expired properly at the moment but it can't be fixed + // as the XLine system is a spaghetti nightmare. Instead we skip over expired + // ELines in XLineManager::CheckELines() and expire them here instead. + ServerInstance->XLines->GetAll("E"); + } + Version GetVersion() CXX11_OVERRIDE { return Version("Provides the ELINE, GLINE, KLINE, QLINE, and ZLINE commands", VF_VENDOR|VF_CORE); -- cgit v1.2.3