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 * ---------------------------------------------------
16 /* $ModDesc: Provides a pointless /dalinfo command, demo module */
20 class cmd_dalinfo : public Command
23 /* Command 'dalinfo', takes no parameters and needs no special modes */
24 cmd_dalinfo (InspIRCd* Instance) : Command(Instance,"DALINFO", 0, 0)
26 this->source = "m_testcommand.so";
29 CmdResult Handle (const char** parameters, int pcnt, userrec *user)
31 user->WriteServ("NOTICE %s :*** DALNet had nothing to do with it.", user->nick);
36 class ModuleTestCommand : public Module
38 cmd_dalinfo* newcommand;
40 ModuleTestCommand(InspIRCd* Me)
43 // Create a new command
44 newcommand = new cmd_dalinfo(ServerInstance);
45 ServerInstance->AddCommand(newcommand);
48 void Implements(char* List)
52 virtual ~ModuleTestCommand()
56 virtual Version GetVersion()
58 return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
62 MODULE_INIT(ModuleTestCommand)