]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_passforward.cpp
Merge pull request #443 from ShutterQuick/sasl_external
[user/henk/code/inspircd.git] / src / modules / m_passforward.cpp
index 047992d120bb127520f44040929f2a50e4085794..84389fb22a9be2e0e5b3a2ed68d29b55723172e3 100644 (file)
@@ -27,11 +27,11 @@ class ModulePassForward : public Module
        std::string nickrequired, forwardmsg, forwardcmd;
 
  public:
-       ModulePassForward()
+       void init()
        {
                OnRehash(NULL);
                Implementation eventlist[] = { I_OnPostConnect, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        Version GetVersion()