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