summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_helpop.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 700656a53..9c7d409a8 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -103,14 +103,14 @@ class ModuleHelpop : public Module
virtual void ReadConfig()
{
- ConfigReader *MyConf = new ConfigReader(ServerInstance);
+ ConfigReader MyConf(ServerInstance);
helpop_map.clear();
- for (int i = 0; i < MyConf->Enumerate("helpop"); i++)
+ for (int i = 0; i < MyConf.Enumerate("helpop"); i++)
{
- irc::string key = assign(MyConf->ReadValue("helpop", "key", i));
- std::string value = MyConf->ReadValue("helpop", "value", i, true); /* Linefeeds allowed! */
+ irc::string key = assign(MyConf.ReadValue("helpop", "key", i));
+ std::string value = MyConf.ReadValue("helpop", "value", i, true); /* Linefeeds allowed! */
if (key == "index")
{