]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chancreate.cpp
Initial support for listening on UNIX socket endpoints.
[user/henk/code/inspircd.git] / src / modules / m_chancreate.cpp
index 5f04b4563e339046d83e16543af371c0f90bd111..6cf4af2352b3a91fb84a1eec15eb18a7eb2f21bf 100644 (file)
 
 #include "inspircd.h"
 
-/* $ModDesc: Provides snomasks 'j' and 'J', to which notices about newly created channels are sent */
-
 class ModuleChanCreate : public Module
 {
  public:
-       void init()
+       void init() CXX11_OVERRIDE
        {
                ServerInstance->SNO->EnableSnomask('j', "CHANCREATE");
-               Implementation eventlist[] = { I_OnUserJoin };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
-       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)))
                {