X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_halfop.cpp;h=3194fcde8ea29308798cd0e45af3fbcbbb54232c;hb=4c751dbbe8945e5efc230a59b0ed51c2ba10cf92;hp=7a43f024169f8cc95805bd33362c046ac62affd1;hpb=53ab523021bbb7bf318bb5e53d15c783685e587b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_halfop.cpp b/src/modules/m_halfop.cpp index 7a43f0241..3194fcde8 100644 --- a/src/modules/m_halfop.cpp +++ b/src/modules/m_halfop.cpp @@ -88,8 +88,11 @@ class ModuleHalfop : public Module public: ModuleHalfop() : mh(this) { - if (!ServerInstance->Modes->AddMode(&mh)) - throw ModuleException("Could not add new modes!"); + } + + void init() + { + ServerInstance->Modules->AddService(mh); } Version GetVersion()