]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globops.cpp
Speaking of forgetting things, someone forgot to change the name of the function
[user/henk/code/inspircd.git] / src / modules / m_globops.cpp
index d86b8ab1354e4366a8975d08746a99270a1e3466..77a35294aafda02ac7a1d33a574d967c288e3184 100644 (file)
@@ -27,12 +27,12 @@ using namespace std;
 
 /* $ModDesc: Provides support for GLOBOPS and user mode +g */
 
-extern InspIRCd* ServerInstance;
+
 
 class cmd_globops : public command_t
 {
  public:
      cmd_globops () : command_t("GLOBOPS",'o',1)
cmd_globops (InspIRCd* Instance) : command_t(Instance,"GLOBOPS",'o',1)
        {
                this->source = "m_globops.so";
                syntax = "<any-text>";
@@ -89,7 +89,7 @@ class ModuleGlobops : public Module
                
                mg = new ModeGlobops(ServerInstance);
                ServerInstance->AddMode(mg, 'g');
-               mycommand = new cmd_globops();
+               mycommand = new cmd_globops(ServerInstance);
                ServerInstance->AddCommand(mycommand);
        }