#include "module.h" class CommandNSRegister : public Command { public: CommandNSRegister() : Command("REGISTER", 1, 2) { this->SetFlag(CFLAG_ALLOW_UNREGISTERED); } CommandReturn Execute(User *u, const std::vector ¶ms) { u->SendMessage(Config.s_NickServ,"Bitte gehe auf http://www.meineseite.de/register.php um deinen Nick zu registrieren"); return MOD_CONT; } }; class NSRegister : public Module { public: NSRegister(const std::string &modname, const std::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetVersion("$Id$"); this->SetType(THIRD); this->AddCommand(NICKSERV, new CommandNSRegister()); } }; MODULE_INIT(NSRegister)