summaryrefslogtreecommitdiff
path: root/src/modules/m_services_account.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_services_account.cpp')
-rw-r--r--src/modules/m_services_account.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index 5b92c8a26..50e2c76a6 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -120,12 +120,8 @@ class ModuleServicesAccount : public Module
void init()
{
- ServerInstance->Modules->AddService(m1);
- ServerInstance->Modules->AddService(m2);
- ServerInstance->Modules->AddService(m3);
- ServerInstance->Modules->AddService(m4);
- ServerInstance->Modules->AddService(m5);
- ServerInstance->Modules->AddService(accountname);
+ ServiceProvider* providerlist[] = { &m1, &m2, &m3, &m4, &m5, &accountname };
+ ServerInstance->Modules->AddServices(providerlist, sizeof(providerlist)/sizeof(ServiceProvider*));
Implementation eventlist[] = { I_OnWhois, I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserPreJoin, I_OnCheckBan,
I_OnDecodeMetaData, I_On005Numeric, I_OnUserPostNick, I_OnSetConnectClass };