diff options
| author | 2010-02-19 23:19:48 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:36 -0400 | |
| commit | 8c7827fc376de41131d6ceae8835be02910776f2 (patch) | |
| tree | f8dd59d3d8ac514d86e19cb9bc5960284e7ae7f9 /src/modules/m_delaymsg.cpp | |
| parent | Change chanprotect settings so it is possible to permit +q to grant +q withou... (diff) | |
Add <options:nameonlymodes>
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
| -rw-r--r-- | src/modules/m_delaymsg.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
