* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
*/
#include "inspircd.h"
-#include "wildcard.h"
-/* $ModDesc: Provides the /clones command to retrieve information on a user, channel, or IP address */
+/* $ModDesc: Provides the /clones command to retrieve information on clones. */
/** Handle /CHECK
*/
syntax = "<limit>";
}
- CmdResult Handle (const char** parameters, int pcnt, User *user)
+ CmdResult Handle (const std::vector<std::string> ¶meters, User *user)
{
std::string clonesstr = "304 " + std::string(user->nick) + " :CLONES";
- unsigned long limit = atoi(parameters[0]);
+ unsigned long limit = atoi(parameters[0].c_str());
/*
* Syntax of a /clones reply:
public:
ModuleClones(InspIRCd* Me) : Module(Me)
{
-
+
mycommand = new CommandClones(ServerInstance);
ServerInstance->AddCommand(mycommand);
}
-
+
virtual ~ModuleClones()
{
}
-
+
virtual Version GetVersion()
{
- return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
+ return Version("$Id$", VF_VENDOR, API_VERSION);
}
-
+
};
MODULE_INIT(ModuleClones)