X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chancreate.cpp;h=997a926489b72e6b1e64df525a3a8885d82c36e6;hb=692865acd58c9a475db1fdf4d419188325cd2182;hp=833d6a774968e947a5a0eaa98f1eeb905953035e;hpb=272208502c426f5bb6abdb13b8986b686afbb904;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chancreate.cpp b/src/modules/m_chancreate.cpp index 833d6a774..997a92648 100644 --- a/src/modules/m_chancreate.cpp +++ b/src/modules/m_chancreate.cpp @@ -27,11 +27,11 @@ class ModuleChanCreate : public Module { private: public: - ModuleChanCreate() - { + void init() + { ServerInstance->SNO->EnableSnomask('j', "CHANCREATE"); Implementation eventlist[] = { I_OnUserJoin }; - ServerInstance->Modules->Attach(eventlist, this, 1); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } Version GetVersion()