diff options
Diffstat (limited to 'src/modules/m_tline.cpp')
-rw-r--r-- | src/modules/m_tline.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index c0588a5e8..2ce4692bb 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -62,15 +62,12 @@ class CommandTline : public Command class ModuleTLine : public Module { - CommandTline* newcommand; + CommandTline cmd; public: ModuleTLine(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { - - newcommand = new CommandTline(ServerInstance); - ServerInstance->AddCommand(newcommand); - + ServerInstance->AddCommand(&cmd); } |