summaryrefslogtreecommitdiff
path: root/src/modules/m_globops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_globops.cpp')
-rw-r--r--src/modules/m_globops.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp
index bbdcc65aa..934a4ec14 100644
--- a/src/modules/m_globops.cpp
+++ b/src/modules/m_globops.cpp
@@ -45,13 +45,12 @@ class CommandGlobops : public Command
class ModuleGlobops : public Module
{
- CommandGlobops* mycommand;
+ CommandGlobops cmd;
public:
ModuleGlobops(InspIRCd* Me)
- : Module(Me)
+ : Module(Me), cmd(Me)
{
- mycommand = new CommandGlobops(ServerInstance);
- ServerInstance->AddCommand(mycommand);
+ ServerInstance->AddCommand(&cmd);
ServerInstance->SNO->EnableSnomask('g',"GLOBOPS");
}