diff options
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
-rw-r--r-- | src/modules/m_httpd_acl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp index 982e514ad..061d56f25 100644 --- a/src/modules/m_httpd_acl.cpp +++ b/src/modules/m_httpd_acl.cpp @@ -45,7 +45,7 @@ class ModuleHTTPAccessList : public Module std::vector<HTTPACL> acl_list; public: - void ReadConfig() + void OnRehash(User* user) { acl_list.clear(); ConfigTagList acls = ServerInstance->Config->ConfTags("httpdacl"); @@ -91,8 +91,8 @@ class ModuleHTTPAccessList : public Module void init() CXX11_OVERRIDE { - ReadConfig(); - Implementation eventlist[] = { I_OnEvent }; + OnRehash(NULL); + Implementation eventlist[] = { I_OnEvent, I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } |