]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globops.cpp
Reset the already_sent IDs during slow garbage collection
[user/henk/code/inspircd.git] / src / modules / m_globops.cpp
index 4c8b0e713e54945cf6ccf66fc4bde4c88bb76a51..f02f8a1b227fe3c5c0bdc960318006ca29d1015b 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -22,9 +22,9 @@
 class CommandGlobops : public Command
 {
  public:
-       CommandGlobops (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"GLOBOPS","o",1,1)
+       CommandGlobops(Module* Creator) : Command(Creator,"GLOBOPS", 1,1)
        {
-               syntax = "<any-text>";
+               flags_needed = 'o'; syntax = "<any-text>";
                TRANSLATE2(TR_TEXT, TR_END);
        }
 
@@ -36,8 +36,8 @@ class CommandGlobops : public Command
                        line = line + parameters[i] + " ";
                }
                ServerInstance->SNO->WriteToSnoMask('g',line);
+               ServerInstance->PI->SendSNONotice("g", line);
 
-               /* route it (ofc :p) */
                return CMD_SUCCESS;
        }
 };
@@ -46,8 +46,8 @@ class ModuleGlobops : public Module
 {
        CommandGlobops cmd;
  public:
-       ModuleGlobops(InspIRCd* Me)
-               : Module(Me), cmd(Me, this)
+       ModuleGlobops()
+               : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
                ServerInstance->SNO->EnableSnomask('g',"GLOBOPS");
@@ -61,7 +61,7 @@ class ModuleGlobops : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("Provides support for GLOBOPS and user mode +g", VF_OPTCOMMON | VF_VENDOR);
        }
 
 };