X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_httpd_acl.cpp;h=c25cabc0ae5eb40cc135ed4acf268718ca835914;hb=692865acd58c9a475db1fdf4d419188325cd2182;hp=e97febc6e4a93fe1010176521679f79883e3054c;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp index e97febc6e..c25cabc0a 100644 --- a/src/modules/m_httpd_acl.cpp +++ b/src/modules/m_httpd_acl.cpp @@ -45,12 +45,11 @@ class ModuleHTTPAccessList : public Module { std::string stylesheet; - bool changed; std::vector acl_list; public: - void ReadConfig() + void OnRehash(User* user) { acl_list.clear(); ConfigTagList acls = ServerInstance->Config->ConfTags("httpdacl"); @@ -96,9 +95,9 @@ class ModuleHTTPAccessList : public Module void init() { - ReadConfig(); - Implementation eventlist[] = { I_OnEvent }; - ServerInstance->Modules->Attach(eventlist, this, 1); + 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="")