X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_regonlycreate.cpp;h=61f94c0bd1b81f26bc4cf9ea2bcdb10d8d84c0c2;hb=fc4fc43ec232407b38d7ca182cb92c5cac4287aa;hp=87704abf6d9ee7c7595a3331d2ddb77fa1618be5;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_regonlycreate.cpp b/src/modules/m_regonlycreate.cpp index 87704abf6..61f94c0bd 100644 --- a/src/modules/m_regonlycreate.cpp +++ b/src/modules/m_regonlycreate.cpp @@ -28,10 +28,10 @@ class ModuleRegOnlyCreate : public Module { public: - ModuleRegOnlyCreate() + void init() { Implementation eventlist[] = { I_OnUserPreJoin }; - ServerInstance->Modules->Attach(eventlist, this, 1); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } ModResult OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)