diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-19 15:16:41 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-19 15:16:41 +0000 |
commit | 3cda2e0971d279b1840d1689bb2821a93d475a4e (patch) | |
tree | e121bf3b785b791672a91976b2e7e2df94a89e31 /include/inspircd.h | |
parent | 2aae57ca07b3de40feb72a21b2f2dea521665d80 (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.h | 6 |
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() |