]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_securelist.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / m_securelist.cpp
index b2d1f80148f051ca9fd9d62f76079a07e4afaae0..5e2d704bb6c404ac8ffb58643daa42ff6a41ec0b 100644 (file)
@@ -21,8 +21,7 @@ class ModuleSecureList : public Module
        std::vector<std::string> allowlist;
        time_t WaitTime;
  public:
-       ModuleSecureList(InspIRCd* Me) : Module(Me)
-       {
+       ModuleSecureList()      {
                OnRehash(NULL);
                Implementation eventlist[] = { I_OnRehash, I_OnPreCommand, I_On005Numeric };
                ServerInstance->Modules->Attach(eventlist, this, 3);
@@ -39,7 +38,7 @@ class ModuleSecureList : public Module
 
        void OnRehash(User* user)
        {
-               ConfigReader* MyConf = new ConfigReader(ServerInstance);
+               ConfigReader* MyConf = new ConfigReader;
                allowlist.clear();
 
                for (int i = 0; i < MyConf->Enumerate("securehost"); i++)