diff options
Diffstat (limited to 'src/modules/m_sajoin.cpp')
-rw-r--r-- | src/modules/m_sajoin.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index cada9890c..8fad7bc42 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -88,15 +88,12 @@ class CommandSajoin : public Command class ModuleSajoin : public Module { - CommandSajoin* mycommand; + CommandSajoin cmd; public: ModuleSajoin(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { - - mycommand = new CommandSajoin(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleSajoin() |