summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-04-14 17:30:30 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-14 17:30:30 +0100
commit368adf591020261c4e8f8d066e2cbfc16add3832 (patch)
tree9d163ffa672265ce241b5247e715b897f4afe209 /src
parente3f22fcf31cd2e789d1be90cf0edf3e82829b54e (diff)
Fix customprefix modes not being deleted when the module unloads.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_customprefix.cpp1
1 files changed, 1 insertions, 0 deletions
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)