]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_acl.cpp
Fix some logically dead code which was found by Coverity.
[user/henk/code/inspircd.git] / src / modules / m_httpd_acl.cpp
index abbab1d872bfd267660d92a74795816705f37c40..c25cabc0ae5eb40cc135ed4acf268718ca835914 100644 (file)
@@ -45,12 +45,11 @@ class ModuleHTTPAccessList : public Module
 {
 
        std::string stylesheet;
-       bool changed;
        std::vector<HTTPACL> acl_list;
 
  public:
 
-       void ReadConfig()
+       void OnRehash(User* user)
        {
                acl_list.clear();
                ConfigTagList acls = ServerInstance->Config->ConfTags("httpdacl");
@@ -94,10 +93,11 @@ class ModuleHTTPAccessList : public Module
                }
        }
 
-       ModuleHTTPAccessList()  {
-               ReadConfig();
-               Implementation eventlist[] = { I_OnEvent };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+       void init()
+       {
+               OnRehash(NULL);
+               Implementation eventlist[] = { I_OnEvent, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        void BlockAccess(HTTPRequest* http, int returnval, const std::string &extraheaderkey = "", const std::string &extraheaderval="")