]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_tline.cpp
This one too, grr
[user/henk/code/inspircd.git] / src / modules / m_tline.cpp
index 834cb7f4cf7c4be236fb92e76d88e217fc6f1684..74bf3a63426df2e1e3e26dae5328215bc0467043 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides /tline command used to test who a mask matches */
 
 /** Handle /TLINE
  */ 
-class cmd_tline : public command_t
+class CommandTline : public Command
 {
  public:
-       cmd_tline (InspIRCd* Instance) : command_t(Instance,"TLINE", 'o', 1)
+       CommandTline (InspIRCd* Instance) : Command(Instance,"TLINE", 'o', 1)
        {
                this->source = "m_tline.so";
                this->syntax = "<mask>";
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle (const char** parameters, int pcnt, User *user)
        {
                float n_counted = 0;
                float n_matched = 0;
@@ -67,13 +64,13 @@ class cmd_tline : public command_t
 
 class ModuleTLine : public Module
 {
-       cmd_tline* newcommand;
+       CommandTline* newcommand;
  public:
        ModuleTLine(InspIRCd* Me)
                : Module(Me)
        {
                
-               newcommand = new cmd_tline(ServerInstance);
+               newcommand = new CommandTline(ServerInstance);
                ServerInstance->AddCommand(newcommand);
        }