From 3cda2e0971d279b1840d1689bb2821a93d475a4e Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 19 Jan 2010 15:16:41 +0000 Subject: Fix some command registration warnings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12305 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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() -- cgit v1.2.3