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());
public:
ModuleClones() : cmd(this)
{
- ServerInstance->AddCommand(&cmd);
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
}
virtual ~ModuleClones()