]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globops.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_globops.cpp
index 87262e4adf6018957236b9af8a9d875835a3a985..9908ad05399acba78b9671814577be695b6e357b 100644 (file)
@@ -14,9 +14,6 @@
 // Globops and +g support module by C.J.Edwards
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for GLOBOPS and user mode +g */
 
@@ -29,6 +26,7 @@ class cmd_globops : public command_t
        {
                this->source = "m_globops.so";
                syntax = "<any-text>";
+               TRANSLATE2(TR_TEXT, TR_END);
        }
 
        CmdResult Handle (const char** parameters, int pcnt, userrec *user)
@@ -60,7 +58,6 @@ class ModuleGlobops : public Module
        virtual ~ModuleGlobops()
        {
                ServerInstance->SNO->DisableSnomask('g');
-               DELETE(mycommand);
        }
        
        virtual Version GetVersion()
@@ -73,4 +70,4 @@ class ModuleGlobops : public Module
        }
 };
 
-MODULE_INIT(ModuleGlobops);
+MODULE_INIT(ModuleGlobops)