]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_check.cpp
Made SANICK not collide the user (theres no need to in the new 1.1 now we have return...
[user/henk/code/inspircd.git] / src / modules / m_check.cpp
index 54abe0940557617cedd728776b3a698a34b831ac..4f153d4960c87c68bf641225c6efc6fb8e66bcf0 100644 (file)
@@ -19,9 +19,7 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "commands.h"
 #include "inspircd.h"
-#include "helperfuncs.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */
@@ -37,7 +35,7 @@ class cmd_check : public command_t
                syntax = "<nickname>|<ip>|<hostmask>|<channel>";
        }
 
-       void Handle (const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle (const char** parameters, int pcnt, userrec *user)
        {
                userrec *targuser;
                chanrec *targchan;
@@ -177,6 +175,8 @@ class cmd_check : public command_t
                }
 
                user->WriteServ(checkstr + " END " + std::string(parameters[0]));
+
+               return CMD_SUCCESS;
        }
 };