From 8c7827fc376de41131d6ceae8835be02910776f2 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 19 Feb 2010 23:19:48 -0600 Subject: Add --- src/modules/m_delaymsg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_delaymsg.cpp') diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index 8a774a754..20ce25d1c 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -44,8 +44,7 @@ class ModuleDelayMsg : public Module public: ModuleDelayMsg() : djm(this) { - if (!ServerInstance->Modes->AddMode(&djm)) - throw ModuleException("Could not add new modes!"); + ServerInstance->Modules->AddService(djm); ServerInstance->Extensions.Register(&djm.jointime); Implementation eventlist[] = { I_OnUserJoin, I_OnUserPreMessage}; ServerInstance->Modules->Attach(eventlist, this, 2); -- cgit v1.3.1-10-gc9f91