1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
23 /* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */
27 class cmd_check : public command_t
30 cmd_check() : command_t("CHECK", 'o', 1)
32 this->source = "m_check.so";
35 void Handle (char **parameters, int pcnt, userrec *user)
42 class ModuleCheck : public Module
47 ModuleCheck(Server* Me) : Module::Module(Me)
50 mycommand = new cmd_check();
51 Srv->AddCommand(mycommand);
54 virtual ~ModuleCheck()
58 virtual Version GetVersion()
60 return Version(1, 0, 0, 0, VF_VENDOR);
63 void Implements(char* List)
65 /* we don't hook anything, nothing required */
72 class ModuleCheckFactory : public ModuleFactory
83 virtual Module * CreateModule(Server* Me)
85 return new ModuleCheck(Me);
90 extern "C" void * init_module( void )
92 return new ModuleCheckFactory;