summaryrefslogtreecommitdiff
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index d7ed6e765..79a94c2b6 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -50,14 +50,12 @@ class CommandAlltime : public Command
class Modulealltime : public Module
{
- CommandAlltime *mycommand;
+ CommandAlltime mycommand;
public:
Modulealltime(InspIRCd *Me)
- : Module(Me)
+ : Module(Me), mycommand(Me)
{
- mycommand = new CommandAlltime(ServerInstance);
- ServerInstance->AddCommand(mycommand);
-
+ ServerInstance->AddCommand(&mycommand);
}
virtual ~Modulealltime()