diff options
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
-rw-r--r-- | src/modules/m_sslinfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 05ba60b1d..01509653c 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -63,13 +63,12 @@ class CommandSSLInfo : public Command class ModuleSSLInfo : public Module { - CommandSSLInfo* newcommand; + CommandSSLInfo cmd; public: ModuleSSLInfo(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { - newcommand = new CommandSSLInfo(ServerInstance); - ServerInstance->AddCommand(newcommand); + ServerInstance->AddCommand(&cmd); Implementation eventlist[] = { I_OnSyncUserMetaData, I_OnDecodeMetaData, I_OnWhois, I_OnPreCommand }; ServerInstance->Modules->Attach(eventlist, this, 4); |