From: attilamolnar Date: Sat, 18 May 2013 14:05:08 +0000 (+0200) Subject: m_httpd_acl Reread config on rehash X-Git-Tag: v2.0.23~294 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=740539d620997cc47fe930db13f41d1c4a650299;p=user%2Fhenk%2Fcode%2Finspircd.git m_httpd_acl Reread config on rehash --- 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)); }