summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_acl.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-18 16:05:08 +0200
committerattilamolnar <attilamolnar@hush.com>2013-05-18 16:05:08 +0200
commit740539d620997cc47fe930db13f41d1c4a650299 (patch)
tree677f8c98c6f43e4904687bdaa9c09429031509c6 /src/modules/m_httpd_acl.cpp
parentb92f3e2032357e5e2aed9814ef169c6560787da7 (diff)
m_httpd_acl Reread config on rehash
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
-rw-r--r--src/modules/m_httpd_acl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp
index 2694402bd..c25cabc0a 100644
--- a/src/modules/m_httpd_acl.cpp
+++ b/src/modules/m_httpd_acl.cpp
@@ -49,7 +49,7 @@ class ModuleHTTPAccessList : public Module
public:
- void ReadConfig()
+ void OnRehash(User* user)
{
acl_list.clear();
ConfigTagList acls = ServerInstance->Config->ConfTags("httpdacl");
@@ -95,8 +95,8 @@ class ModuleHTTPAccessList : public Module
void init()
{
- ReadConfig();
- Implementation eventlist[] = { I_OnEvent };
+ OnRehash(NULL);
+ Implementation eventlist[] = { I_OnEvent, I_OnRehash };
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}