X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_testcommand.cpp;h=b38171593d34ed4c7a94a972bbaa13aea3614afc;hb=f9ef4ebc9dc4fd46cdafcc76df644b4896251dac;hp=2da77b34e772333942149b20ba40456532e56eb1;hpb=b669f920eaa9fb795d0a103d724943898a0df4b2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index 2da77b34e..b38171593 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -26,7 +26,7 @@ class CommandDalinfo : public Command this->source = "m_testcommand.so"; } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { user->WriteServ("NOTICE %s :*** DALNet had nothing to do with it.", user->nick); return CMD_FAILURE; @@ -43,19 +43,17 @@ class ModuleTestCommand : public Module // Create a new command newcommand = new CommandDalinfo(ServerInstance); ServerInstance->AddCommand(newcommand); - } - void Implements(char* List) - { } + virtual ~ModuleTestCommand() { } virtual Version GetVersion() { - return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION); + return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION); } };