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