diff options
Diffstat (limited to 'src/modules/m_vhost.cpp')
-rw-r--r-- | src/modules/m_vhost.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index a300ad3b8..005177cdb 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -58,15 +58,12 @@ class CommandVhost : public Command class ModuleVHost : public Module { private: - - CommandVhost* mycommand; + CommandVhost cmd; public: - ModuleVHost(InspIRCd* Me) : Module(Me) + ModuleVHost(InspIRCd* Me) : Module(Me), cmd(Me) { - mycommand = new CommandVhost(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleVHost() |