From 368adf591020261c4e8f8d066e2cbfc16add3832 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 17:30:30 +0100 Subject: [PATCH] Fix customprefix modes not being deleted when the module unloads. --- src/modules/m_customprefix.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp index 61c50ec0c..5874e02d9 100644 --- a/src/modules/m_customprefix.cpp +++ b/src/modules/m_customprefix.cpp @@ -86,6 +86,7 @@ class ModuleCustomPrefix : public Module try { CustomPrefixMode* mh = new CustomPrefixMode(this, name, letter[0], prefix[0], tag); + modes.push_back(mh); ServerInstance->Modules->AddService(*mh); } catch (ModuleException& e) -- 2.39.2