X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_halfop.cpp;h=3194fcde8ea29308798cd0e45af3fbcbbb54232c;hb=9f69e159adcc0892f0bdef16ac4617630737b156;hp=2c4b086cb4f3f96f0ff8c76521a45a9de4ad1909;hpb=44f42a13de52c8025942ddab42f51feb36821782;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_halfop.cpp b/src/modules/m_halfop.cpp index 2c4b086cb..3194fcde8 100644 --- a/src/modules/m_halfop.cpp +++ b/src/modules/m_halfop.cpp @@ -17,6 +17,8 @@ */ +/* $ModDesc: Channel half-operator mode provider */ + #include "inspircd.h" class ModeChannelHalfOp : public ModeHandler @@ -86,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()