diff options
Diffstat (limited to 'src/modules/m_chghost.cpp')
-rw-r--r-- | src/modules/m_chghost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 5855104de..4d39127e7 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -98,7 +98,7 @@ class ModuleChgHost : public Module void init() { OnRehash(NULL); - ServerInstance->AddCommand(&cmd); + ServerInstance->Modules->AddService(cmd); Implementation eventlist[] = { I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } |