X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_halfop.cpp;h=3194fcde8ea29308798cd0e45af3fbcbbb54232c;hb=571714e28b26cc59cbc8d27098a5ba981240ee2d;hp=7a43f024169f8cc95805bd33362c046ac62affd1;hpb=2ab2de1dda8f2043898b9df8004ba5b6c4df7349;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()