X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_commonchans.cpp;h=afa17add4512d437f41d58ecdad182d40c9b52ad;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=d5e7d4b1c6f693452c4f15adcd780071eb54d669;hpb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index d5e7d4b1c..afa17add4 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -39,8 +39,7 @@ class ModulePrivacyMode : public Module void init() { - if (!ServerInstance->Modes->AddMode(&pm)) - throw ModuleException("Could not add new modes!"); + ServerInstance->Modules->AddService(pm); Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); }