]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_check.cpp
Socket engine tweaks to fix a glitch, and improvements to new m_ident
[user/henk/code/inspircd.git] / src / modules / m_check.cpp
index 643af8e15d0d955713d2444acda716fe1944e554..24024e2f906c883a95fb06633d217fd382d898c8 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */
 
 /** Handle /CHECK
  */
-class cmd_check : public command_t
+class cmd_check : public Command
 {
  public:
-       cmd_check (InspIRCd* Instance) : command_t(Instance,"CHECK", 'o', 1)
+       cmd_check (InspIRCd* Instance) : Command(Instance,"CHECK", 'o', 1)
        {
                this->source = "m_check.so";
                syntax = "<nickname>|<ip>|<hostmask>|<channel>";
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle (const char** parameters, int pcnt, User *user)
        {
-               userrec *targuser;
-               chanrec *targchan;
+               User *targuser;
+               Channel *targchan;
                std::string checkstr;
                std::string chliststr;