1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
19 /* $ModDesc: Provides a pointless /dalinfo command, demo module */
23 class cmd_dalinfo : public command_t
26 /* Command 'dalinfo', takes no parameters and needs no special modes */
27 cmd_dalinfo (InspIRCd* Instance) : command_t(Instance,"DALINFO", 0, 0)
29 this->source = "m_testcommand.so";
32 CmdResult Handle (const char** parameters, int pcnt, userrec *user)
34 user->WriteServ("NOTICE %s :*** DALNet had nothing to do with it.", user->nick);
39 class ModuleTestCommand : public Module
41 cmd_dalinfo* newcommand;
43 ModuleTestCommand(InspIRCd* Me)
46 // Create a new command
47 newcommand = new cmd_dalinfo(ServerInstance);
48 ServerInstance->AddCommand(newcommand);
51 void Implements(char* List)
55 virtual ~ModuleTestCommand()
59 virtual Version GetVersion()
61 return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
65 MODULE_INIT(ModuleTestCommand)