summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-19 15:16:41 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-19 15:16:41 +0000
commit3cda2e0971d279b1840d1689bb2821a93d475a4e (patch)
treee121bf3b785b791672a91976b2e7e2df94a89e31 /include/inspircd.h
parent2aae57ca07b3de40feb72a21b2f2dea521665d80 (diff)
Fix some command registration warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12305 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 89f0a08ee..44e6abe57 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -813,7 +813,11 @@ class CommandModule : public Module
public:
CommandModule() : cmd(this)
{
- ServerInstance->AddCommand(&cmd);
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
}
Version GetVersion()