X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_vhost.cpp;h=31c504af8df7084a4ec713af73d631991eeb6dbd;hb=68211809ee3111bdc9609fbd46dc3c875fbb5ea6;hp=8ae231f336f9fae709ed17de479f5e84b57e618c;hpb=c8b41aa5d256d99eee67ec94492a94dc30e0ea35;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index 8ae231f33..31c504af8 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -69,7 +69,11 @@ class ModuleVHost : public Module public: ModuleVHost() : cmd(this) { - ServerInstance->AddCommand(&cmd); + } + + void init() + { + ServerInstance->Modules->AddService(cmd); } virtual ~ModuleVHost()