summaryrefslogtreecommitdiff
path: root/src/modules/m_halfop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_halfop.cpp')
-rw-r--r--src/modules/m_halfop.cpp3
1 files changed, 1 insertions, 2 deletions
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()