]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ojoin.cpp
Automatically attach modules to events
[user/henk/code/inspircd.git] / src / modules / m_ojoin.cpp
index 042b2aaba5161c9bde297094cc8ee95e8b2c2d06..8f7fe4460e719d4e60fe567a0350a54375bef887 100644 (file)
@@ -142,9 +142,6 @@ class ModuleOjoin : public Module
 
                ServerInstance->Modules->AddService(*np);
                ServerInstance->Modules->AddService(mycommand);
-
-               Implementation eventlist[] = { I_OnUserPreJoin, I_OnUserPreKick, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) CXX11_OVERRIDE