summaryrefslogtreecommitdiff
path: root/src/modules/m_satopic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_satopic.cpp')
-rw-r--r--src/modules/m_satopic.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp
index 67756158a..7414058df 100644
--- a/src/modules/m_satopic.cpp
+++ b/src/modules/m_satopic.cpp
@@ -55,13 +55,12 @@ class CommandSATopic : public Command
class ModuleSATopic : public Module
{
- CommandSATopic* mycommand;
+ CommandSATopic cmd;
public:
ModuleSATopic(InspIRCd* Me)
- : Module(Me)
+ : Module(Me), cmd(Me)
{
- mycommand = new CommandSATopic(ServerInstance);
- ServerInstance->AddCommand(mycommand);
+ ServerInstance->AddCommand(&cmd);
}
virtual ~ModuleSATopic()