diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-14 17:30:30 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-14 17:30:30 +0100 |
commit | 368adf591020261c4e8f8d066e2cbfc16add3832 (patch) | |
tree | 9d163ffa672265ce241b5247e715b897f4afe209 /src | |
parent | e3f22fcf31cd2e789d1be90cf0edf3e82829b54e (diff) |
Fix customprefix modes not being deleted when the module unloads.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_customprefix.cpp | 1 |
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) |