diff options
Diffstat (limited to 'src/modules/m_securelist.cpp')
-rw-r--r-- | src/modules/m_securelist.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp index 91dc3a0cd..c553aa742 100644 --- a/src/modules/m_securelist.cpp +++ b/src/modules/m_securelist.cpp @@ -38,14 +38,13 @@ class ModuleSecureList : public Module void OnRehash(User* user) { - ConfigReader* MyConf = new ConfigReader; + ConfigReader MyConf; allowlist.clear(); - for (int i = 0; i < MyConf->Enumerate("securehost"); i++) - allowlist.push_back(MyConf->ReadValue("securehost", "exception", i)); + for (int i = 0; i < MyConf.Enumerate("securehost"); i++) + allowlist.push_back(MyConf.ReadValue("securehost", "exception", i)); - WaitTime = MyConf->ReadInteger("securelist", "waittime", "60", 0, true); - delete MyConf; + WaitTime = MyConf.ReadInteger("securelist", "waittime", "60", 0, true); } |