summaryrefslogtreecommitdiff
path: root/modules/commands/ns_access.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_access.cpp')
-rw-r--r--modules/commands/ns_access.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp
index facf7cf9c..1df0bbe0e 100644
--- a/modules/commands/ns_access.cpp
+++ b/modules/commands/ns_access.cpp
@@ -10,6 +10,7 @@
*/
#include "module.h"
+#include "modules/nickserv.h"
class CommandNSAccess : public Command
{
@@ -187,12 +188,14 @@ class CommandNSAccess : public Command
};
class NSAccess : public Module
+ , public EventHook<NickServ::Event::NickRegister>
{
CommandNSAccess commandnsaccess;
public:
- NSAccess(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
- commandnsaccess(this)
+ NSAccess(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
+ , EventHook<NickServ::Event::NickRegister>("OnNickRegister")
+ , commandnsaccess(this)
{
}