public:
ModuleAntiBear() : bearExt("antibear_timewait", this)
{
- Extensible::Register(&bearExt);
+ ServerInstance->Extensions.Register(&bearExt);
Implementation eventlist[] = { I_OnUserRegister, I_OnPreCommand };
ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual Version GetVersion()
{
- return Version("Sends a numeric on connect which cripples a common type of trojan/spambot",VF_VENDOR,API_VERSION);
+ return Version("Sends a numeric on connect which cripples a common type of trojan/spambot",VF_VENDOR);
}
virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line)