CmdResult Handle (const std::vector<std::string> ¶meters, User *user)
{
- std::string clonesstr = "304 " + std::string(user->nick) + " :CLONES";
+ std::string clonesstr = "304 " + user->nick + " :CLONES";
unsigned long limit = atoi(parameters[0].c_str());
}
};
-
class ModuleClones : public Module
{
- private:
CommandClones cmd;
public:
ModuleClones() : cmd(this)
{
- ServerInstance->AddCommand(&cmd);
}
- virtual ~ModuleClones()
+ void init()
{
+ ServerInstance->Modules->AddService(cmd);
}
virtual Version GetVersion()
{
return Version("Provides the /CLONES command to retrieve information on clones.", VF_VENDOR);
}
-
-
};
MODULE_INIT(ModuleClones)