]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictmsg.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_restrictmsg.cpp
index ef9181a2469857c245f4138926e25b41633edcad..9ed09274658aceff11fab4e93624d48435b0de36 100644 (file)
@@ -29,9 +29,8 @@ class ModuleRestrictMsg : public Module
 
  public:
 
-       ModuleRestrictMsg()
-                       {
-
+       void init()
+       {
                Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
                ServerInstance->Modules->Attach(eventlist, this, 2);
        }