diff options
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() |