]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globops.cpp
Added <oper:swhois> to m_swhois, which will override <type:swhois> if specified
[user/henk/code/inspircd.git] / src / modules / m_globops.cpp
index f0a879d4baf13f8aafdb86ab584667bc1924ff9a..f7a072b6f3f80710a6088982d3a02c6251b113ed 100644 (file)
@@ -27,8 +27,8 @@ using namespace std;
 
 /* $ModDesc: Provides support for GLOBOPS and user mode +g */
 
-
-
+/** Handle /GLOBOPS
+ */
 class cmd_globops : public command_t
 {
  public:
@@ -38,7 +38,7 @@ class cmd_globops : public command_t
                syntax = "<any-text>";
        }
 
-       void Handle (const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle (const char** parameters, int pcnt, userrec *user)
        {
                std::string line = "From " + std::string(user->nick) + ": ";
                for (int i = 0; i < pcnt; i++)
@@ -46,6 +46,8 @@ class cmd_globops : public command_t
                        line = line + std::string(parameters[i]) + " ";
                }
                ServerInstance->SNO->WriteToSnoMask('g',line);
+
+               return CMD_SUCCESS;
        }
 };
 
@@ -69,7 +71,7 @@ class ModuleGlobops : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,0,0,1,VF_VENDOR);
+               return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
        }
 
        void Implements(char* List)