X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chancreate.cpp;h=6cf4af2352b3a91fb84a1eec15eb18a7eb2f21bf;hb=b9006ce3cba742ca2a22d601ba1a63a47b0402c9;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..6cf4af235 100644 --- a/src/modules/m_chancreate.cpp +++ b/src/modules/m_chancreate.cpp @@ -21,26 +21,20 @@ #include "inspircd.h" -/* $ModDesc: Provides snomasks 'j' and 'J', to which notices about newly created channels are sent */ - class ModuleChanCreate : public Module { - private: public: - ModuleChanCreate() - { + void init() CXX11_OVERRIDE + { ServerInstance->SNO->EnableSnomask('j', "CHANCREATE"); - Implementation eventlist[] = { I_OnUserJoin }; - ServerInstance->Modules->Attach(eventlist, this, 1); } - Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides snomasks 'j' and 'J', to which notices about newly created channels are sent",VF_VENDOR); } - - void OnUserJoin(Membership* memb, bool sync, bool created, CUList& except) + void OnUserJoin(Membership* memb, bool sync, bool created, CUList& except) CXX11_OVERRIDE { if ((created) && (IS_LOCAL(memb->user))) {