aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar danieldg2010-01-19 15:16:41 +0000
committerGravatar danieldg2010-01-19 15:16:41 +0000
commit3cda2e0971d279b1840d1689bb2821a93d475a4e (patch)
treee121bf3b785b791672a91976b2e7e2df94a89e31 /include
parentERROR is not a valid log level, so all these messages were getting dropped (diff)
downloadinspircd++-3cda2e0971d279b1840d1689bb2821a93d475a4e.tar.gz
inspircd++-3cda2e0971d279b1840d1689bb2821a93d475a4e.tar.bz2
inspircd++-3cda2e0971d279b1840d1689bb2821a93d475a4e.zip
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')
-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()