]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globops.cpp
Socket engine tweaks to fix a glitch, and improvements to new m_ident
[user/henk/code/inspircd.git] / src / modules / m_globops.cpp
index 18eae1d24e619adc3443c4aebad2895af7c504e4..b95f455dc7759033036dc6a6e69e41e9ab50a9d1 100644 (file)
 // 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 */
 
 /** Handle /GLOBOPS
  */
-class cmd_globops : public command_t
+class cmd_globops : public Command
 {
  public:
-       cmd_globops (InspIRCd* Instance) : command_t(Instance,"GLOBOPS",'o',1)
+       cmd_globops (InspIRCd* Instance) : Command(Instance,"GLOBOPS",'o',1)
        {
                this->source = "m_globops.so";
                syntax = "<any-text>";
+               TRANSLATE2(TR_TEXT, TR_END);
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle (const char** parameters, int pcnt, User *user)
        {
                std::string line = "From " + std::string(user->nick) + ": ";
                for (int i = 0; i < pcnt; i++)